The uploaded custom collector package can be deleted from the HDFS using below API.

DELETE: {{TCO_URL}}/dcc/v1/packages/<package_name>

Use below curl command to delete the uploaded custom collector package.

curl -X DELETE ":/dcc/v1/packages" -u 'user:password'



@custom_collector_v1.route('/packages/<package_name>', methods=['DELETE'])
def delete_custom_collector_package(package_name):    
""" Delete the uploaded Collector Package via name attribute.        Returns: Response message saying Object is deleted successfully. """