Delete object

To delete an object we will use the

object.destroy method:

var car = Simbla.Object.extend("Cars");
var query = new Simbla.Query(car);
query.get("WY0DQyj9L6 ", {
    success: function(car) {
      car.destroy({
          success: function(car) {
            alert("Object deleted");
          },
          error: function(car, error) {
            alert("Object not deleted");
          }
      });
    },
    error: function(car, error) {
       alert("Object not found");
    }
});

About Simbla

Trying to create a website for their own business, Simbla's founders recognized, over the years, a lack of excellent, simple tools available on the market. Therefore, in 2013 Simbla was founded, for the purpose of providing a smart and easy website building solution for all types of businesses. Simbla's founders have more than 15 years of experience with web-based platforms and website building. We are helping SMB's to create a web presence and to evolve easily into a highly competitive market.

In our vision Simbla creates a new environment where websites are meant for everybody!

Social

all rights reserved to simbla inc

2016