Delete Data Files

API Explorer: /collections/{collectionId}/delete-file

To delete a data file from a multi-test, you need to send the fileName of the file you want to remove from the multi-test. In the sample code to the right, we are wanting to delete the colors.csv file, so the fileName value needs to match colors.csv. This will then delete the colors.csv file from collectionId 12345678.

You should set the collectionId with your multi-test's ID and the fileName colors.csv should be replaced with a file that exists in your multi-test.

Delete Data Files


curl 'https://a.blazemeter.com/api/v4/collections/12345678/delete-file' \
	-X POST \
	-H 'Content-Type: application/json' \
	--user 'api_key_id:api_key_secret' \
	-d '{"fileName":"colors.csv"}'
				

Delete Data Files Request Attributes

Attributes

  • fileNamestring

    required

    Denotes which file to delete

Delete Data FilesDelete Data Files POST Body (JSON)


{
	"fileName": "colors.csv"
}
				

Delete Data Files Attributes

The result attribute will be true if the data file was deleted successfully.

Response200 OK

{
    "api_version": 4,
    "error": null,
    "result": true
}