Yurba Docs

DELETE /photos/{photo_id}

Delete photo, returns bool int.

Request URL params:

photo_id: int

Request headers:

token: string

Response:

{
   ok: int
}

Example:

{
   ok: 1
}

Errors:

auth_failed: token authorization failed

access_denied: you aren't the author of the photo

delete_error: error deleting from storage