DELETE /api/images
Deletes one or more images from the photo frame collection. Requires admin authentication.Request
Request Example
Single Image
Multiple Images
Response
Status Codes
JavaScript Example
Important Notes
- Image paths should be relative to the uploads directory
- Use forward slashes for path separators
- Non-existent files are reported but don’t cause the entire operation to fail
- Empty folders are not automatically removed after deleting all contents
- Deletion is permanent - there is no trash/recycle bin functionality
Bulk Operations
For deleting many images:- Consider breaking large batches into smaller chunks
- Monitor server response times for large operations
- Check the response for any partial failures
- Failed deletions don’t stop the processing of remaining images

