Delete a Tugboat Project

Deletes a Tugboat Project, or a set or Tugboat Projects.

Arguments

  • project - Required
    The ID of the project to delete.

Example

socket.emit('tugboat', 'projects', 'delete', args, callback);

Output

json

When the requested projects are successfully deleted, they are returned to show what was deleted.

single

[
    {
        "updatedAt": "2017-02-14T18:47:18.102Z",
        "createdAt": "2017-02-14T18:47:18.102Z",
        "name": "test",
        "_id": "58a350b6ce7c680001458884",
        "sleep": true,
        "base": false,
        "size": 0,
        "quota": 0,
        "admins": ["58a22d61f405580001b36b84"],
        "users": ["58a22d61f405580001b36b86"],
        "id": "58a350b6ce7c680001458884"
    }
]

array

[
    {
        "updatedAt": "2017-02-14T18:47:18.102Z",
        "createdAt": "2017-02-14T18:47:18.102Z",
        "name": "test",
        "_id": "58a350b6ce7c680001458884",
        "sleep": true,
        "base": false,
        "size": 0,
        "quota": 0,
        "admins": ["58a22d61f405580001b36b84"],
        "users": ["58a22d61f405580001b36b86"],
        "id": "58a350b6ce7c680001458884"
    }
]

Errors

  • 1003: No Projects Found
    Returned if the requested projects do not exist, or the requestor does not have permission to delete them.

  • 1004: No Project ID Provided
    The required project argument was not included in the request.

results matching ""

    No results matching ""