Category Filter
Delete Files
This endpoint permanently removes FileManagement rows from the Amazon S3 for given file IDs. This only applies to files that have successfully gone through the upload pipeline: Generate Presigned Upload URL -> Uploading to Amazon S3 -> Verify File Upload.
| Argument | Type | Description |
|---|---|---|
| file_ids | Array | IDs of the files to be permanently deleted from the catalog |
curl
HTTP Request:
|
1 2 3 4 5 6 7 8 9 |
POST https://<portal>.hexnodemdm.com/api/v1/filemanagement/delete-files/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- { "file_ids": [101, 102] } |
Shell Command:
|
1 |
curl -H "Authorization: <api key>" -H "Content-Type: application/json" -d '{"file_ids":[101, 102]}' https://<portal>.hexnodemdm.com/api/v1/filemanagement/delete-files/ |
HTTP Response:
|
1 2 3 |
{ "message": "Files are Deleted Successfully" } |