projects/delete

Removes an existing project that the logged user has access to. Please note that by removing a project, every entry attached to it is also removed from the database.

URL

http://api.staction.com/projects/delete.format

HTTP Method:

POST

Required Parameters

  • id: ID of the project you want to remove. The call will fail if the logged user doesn’t have access to the project specified by this field.

Examples (using curl)

  • curl -d “developerKey=123&account=pasteinteractive&email=brian@pasteinteractive.com&password=a&id=655” http://api.staction.com/projects/delete.json

Expected Responses

If the call fails to be executed properly, the API will return an error in the default error format, with a status field set to false, and a reason field explaining why it failed to run (respecting the format requested). If the call runs properly, it will return a status field set to true, indicating your project was successfully removed.

As an example, here’s a couple of parsed JSON responses, transferred into multidimensional arrays for the sake of clarity.

Array
(
    [status] => true
) 
Array
(
    [status] => false
    [reason] => Invalid project.
)