delete function
Invoked when an item is deleted from a table.
Syntax
function del(id, user, request) { }
Parameters
id
Type: numberThe ID of the record to be deleted.
user
Type: objectThe user object that represents an authenticated user when authentication is required, otherwise undefined.
request
Type: objectThe request object that represents the request for the operation.
Return Value
Type: undefined
When the delete operation succeeds, a response with 204 HTTP status code is returned, with no entity-body.
Remarks
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
See Also
Server script example how tos
How to: Authenticate with Windows Live