API Method: /api/photo/delete-upload-token
Delete a photo using an upload token.
Parameters
Parameter | Description |
---|---|
upload_token (required) | The upload token being used. |
photo_id (required) | The photo or video to be deleted. |
resumableIdentifier | Optional resumable identifier if the Resumable.js library was used to upload the file. |
Permission level
The minimum required permission level is:
none
For non-public sites, the minimum level is:
anonymous
Example XML Response
<response status="ok" permission_level="none"
message="The photo was deleted" cached="0"/>
Example JSON Response
{
"status": "ok",
"message":"The photo was deleted",
"permission_level":"none",
"cached":"0",
"photo":{},
"p": "1",
"size": "1",
"site": { ... },
"endpoint": "/api/photo/delete-upload-token"
}