Delete Shared Folder File

API Explorer: /folders/{folderId}/delete-file

To delete an uploaded file from a shared folder, you need to know the folderId and the filename. The sample code deletes the file, MyTest.jmx, from the shared folder with an ID of 5b96c41fad67294528f03df8. Replace MyTest.jmx with the actual file name and 5b96c41fad67294528f03df8 with your folderId.

If you do not know the folderId of the shared folder, use List Shared Folders to return a list of your shared folders. If you do not know the file you want to delete, use List Shared Folder Files to return a list of your shared folder's files.

Delete Shared Folder File

curl 'https://a.blazemeter.com/api/v4/folders/5b96c41fad67294528f03df8/delete-file' \
	-X POST \
	-H "Content-Type: application/json" \
  --user 'api_key_id:api_key_secret' \
  -d '{"fileName":"MyTest.jmx"}'
		

Delete Shared Folder File Request Attributes

Attributes

  • filename string

    required

    The filename of the file you want to delete

Delete Shared Folder FileDelete Shared Folder File POST Body (JSON)

{
    "fileName": "MyTest.jmx"
}

Delete Shared Folder File Response Attributes

Response200 OK

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