Home » Backbone.js model.destroy()

Backbone.js model.destroy()

by Online Tutorials Library

Backbone.js Destroy Model

The Backbone.js destroy model is used to destroy or remove the model from the server. It uses the Backbone.sync method which delegates the HTTP “delete” request.

Syntax:

Parameter explanation:

options: specifies the parameters like id, name etc. which will get removed from the server.

Let’s take an example.

See this example:

You may also like