Delete a media file or directory
POST/api/delete-media
Permanently deletes a file or directory beneath the media root. If the deleted path is assigned to a media-source slot, Insight clears that assignment to avoid leaving stale playback state. 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.