Endpoint for deleting photos