Delete a media file or directory
POST/api/delete-media
Permanently deletes a file or directory inside the media library. If a deleted file (or any file inside a deleted directory) is assigned to a media-source slot, Insight stops that slot and clears the assignment, and it discards any cached FPS renditions built from the deleted files. Prefer stopping active sources first, and always obtain the relative path from the media tree rather than sending an absolute host path.
Request
Responses
- 200
- 400
- 403
- 404
- 500
The path was deleted.
Missing or invalid request data.
The requested path escapes the allowed root.
The requested resource was not found.
A local operation failed.