Knowledge Base: collections.delete

collections.delete

HTTP Method: POST
Required Parameters: api_key, user_token, slug
Optional Parameters: none

Deletes the specified image plus all associated files from the database.

Required Parameters

api_key:    API token for your client.
user_token: The user token for the owner of the image.
slug:       The slug of the collection

Usage

Simply send a HTTP POST request containing the above parameters in the body.

https://api.emberapp.com/images/delete

Response

On success: HTTP 200 response.

<?xml version="1.0"?>
<response>
    <status code="0">OK</status>
    <api>api.collections.delete</api>
</response>

On failure: HTTP 400 response plus an array of errors.

<?xml version="1.0"?>
<response>
    <status code="1">FAIL</status>
    <api>api.collections.delete</api>
    <errors>
        <error>Unable to find that collection</error>
    </errors>
</response>