Delete Collector Conf Files

Delete Collector Conf Files

Deletes the requested configuration files.

Request
URI
DELETE
https://{api_host}/dcc/v1/collectors/{collector-name}/file
COPY
Path Parameters
string
collector-name
Required

id of the instantiated collector

collector-name example
demo-collector

Request Body

List of file paths user wants to delete.

FilePathList of type(s) application/json
Required
{
    "file_paths_list": [
        "Collecting/Availability-Filter/test/conf/availability-filter.xml",
        "Collecting/Availability-Filter/test/conf/test.xml"
    ]
}
array of string
file_paths_list
Optional

Array of file path strings.

Authentication
This operation uses the following authentication methods.
Responses
207

File deleted successfully

Returns MultiStatusDeleteResponse of type(s) application/json
"MultiStatusDeleteResponse Object"
array of string
successful
Optional

Array of successfully deleted file path strings.

array of string
failed
Optional

Array of failed deleted file path strings.


400

Bad request

Operation doesn't return any data structure

401

User authentication failed

Operation doesn't return any data structure

403

Access to the requested resource/operation is forbidden

Operation doesn't return any data structure

404

Collector/file not found

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/dcc/v1/collectors/{collector-name}/file