Skip to content

Triggering Delete Event

To trigger an event, delete an Order object from the Backendless database. This can be done with any Backendless SDK (Android, iOS, JS, .NET), REST API or Backendless Console:

const orderObject = { objectId: 'xxxx-xxx-xxxx-xxxx' } // retrieve an existing object

// now delete the object
Backendless.Data.of( 'Order' ).remove( orderObject )
  .then( removedOrder => console.log( 'Object has been deleted from the database' ))
  .catch( error => console.log( 'Server reported an error', error ))
function Order() {
  this.orderAmount = 0;
  this.orderName = "";
}

var orderObject = // retrieve object from the server

// now delete the object
Backendless.Data.of( Order ).remove( orderObject )
  .then( removedOrder => console.log( 'Object has been deleted from the database' ))
  .catch( error => console.log( 'Server reported an error', error ))