Delete Asset Files
API Explorer: /tests/{testId}/delete-file
To delete an uploaded file from a created test, you need to know the testId and the filename. The sample code deletes the file (MyTest.jmx) from the test with an ID of 1234567. Replace MyTest.jmx with the actual file name and 1234567 with your testId.
If you do not know the
testId of the test to delete the file from, use List Tests to return a list of your created tests. If you do not know the file you want to delete, use List Test Files to return a list of the test files.Delete a File
curl 'https://a.blazemeter.com/api/v4/tests/1234567/delete-file' \
-X POST \
-H "Content-Type: application/json" \
--user 'api_key_id:api_key_secret' \
-d '{"fileName":"MyTest.jmx"}'
Delete Asset Files Request Attributes
Attributes
-
fileNamestringrequired
Denotes which file to delete
Delete a FileDelete a File Sample POST Body (JSON)
{
"fileName": "MyTest.jmx"
}
Delete Asset Files Response Attributes
The result attribute will be true if the data file was deleted successfully.
Response200 OK
{
"api_version": 4,
"error": null,
"result": true
}