Delete Asset File

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.

Delete Asset 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 File Request Attributes

Attributes

  • fileNamestring

    required

    Denotes which file to delete

Delete Asset FileDelete Asset File Sample POST Body (JSON)

{
    "fileName": "MyTest.jmx"
}

Delete Asset File Response Attributes

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

Response200 OK

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