delete function


Updated: June 3, 2015

Invoked when an item is deleted from a table.

function del(id, user, request) { }


Type: number

The ID of the record to be deleted.


Type: object

The user object that represents an authenticated user when authentication is required, otherwise undefined.


Type: object

The request object that represents the request for the operation.

Type: undefined 

When the delete operation succeeds, a response with 204 HTTP status code is returned, with no entity-body.

Because the id parameter is passed by value, changing it in your script does not affect the item that gets deleted.

You can override the default success and error behaviors. For more information, see Mobile Services JavaScript (Node.js) backend library