Javatpoint Logo
Javatpoint Logo

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:

Test it Now

Output:

Save the above code in destroy.html file and open this file in a new browser.

BackboneJS Destroy Model




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA