Delete Tag
=======================
----------------------------------------
1. [Purpose][purpose]
1. [Endpoint][endpoint]
1. [Parameters][parameters]
1. [Examples][examples]
* [Command line][example-cli]
* [PHP][example-php]
1. [Response][response]
* [Sample][sample]
----------------------------------------
### Purpose of the Delete Tag API
This API is used internally to delete a tag.
External applications should use the [Photo Update API](http://theopenphotoproject.org/documentation/api/PostPhotoUpdate) to delete tags.
----------------------------------------
### Endpoint
_Authentication: required_
POST /tag/:id/delete.json
### Parameters
----------------------------------------
### Examples
#### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.trovebox.com -e /tag/sunnyvale/delete.json
#### PHP (using [openphoto-php][openphoto-php])
$client = new OpenPhotoOAuth($host, $consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
$response = $client->post("/tag/sunnyvale/delete.json");
----------------------------------------
### Response
The response is in a standard [response envelope](http://theopenphotoproject.org/documentation/api/Envelope).
* _message_, A string describing the result. Don't use this for anything but reading.
* _code_, _201_ on success
* _result_, TRUE if the tag was successfully deleted
#### Sample
{
"message":"",
"code":201,
"result":TRUE
}
[Tag]: http://theopenphotoproject.org/documentation/schemas/Tag
[purpose]: #purpose
[endpoint]: #endpoint
[parameters]: #parameters
[examples]: #examples
[example-cli]: #example-cli
[example-php]: #example-php
[response]: #response
[sample]: #sample
[openphoto-php]: https://github.com/photo/openphoto-php