Delete media file
Permanently delete a media file from storage and mark it as deleted in the database. This action cannot be undone. The file will be removed from blob storage immediately. Any posts that reference this media ID will retain their existing published content, but the media file will no longer be accessible for new posts.
fetch("https://api.outstand.so/v1/media/string", { method: "DELETE"}){
"success": true,
"message": "Media file deleted successfully"
}{
"success": false,
"error": "Invalid request",
"details": {
"filename": {
"_errors": [
"Required"
]
}
}
}{
"success": false,
"error": "Invalid request",
"details": {
"filename": {
"_errors": [
"Required"
]
}
}
}{
"success": false,
"error": "Internal server error",
"message": "Failed to generate upload URL"
}