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:
Map orderObject = // retrieve an existing object
// now delete the object
Backendless.data.of("Order").remove(entity: orderObject).then((timestamp) {
print("Order Object has been deleted from the database");
});
import 'package:backendless_sdk/backendless_sdk.dart';
@reflector
class Order {
int orderAmount;
String orderName;
String objectId;
}
Order order = // retrieve an order from the database
// delete the object from the database
Backendless.data.withClass<Order>().remove(entity: order).then((timestamp) {
print("Order Object has been deleted from the database");
});