destroymodel.destroy([options])
Destroys the model on the server by delegating an HTTP DELETE
request to Backbone.sync. Returns a jqXHR object, or false
if the model isNew. Accepts success
and error
callbacks in the options hash, which will be passed (model, response, options)
. Triggers a "destroy"
event on the model, which will bubble up through any collections that contain it, a "request"
event as it begins the Ajax request to the server, and a "sync"
event, after the server has successfully acknowledged the model's deletion. Pass {wait: true}
if you'd like to wait for the server to respond before removing the model from the collection.
book.destroy({success: function(model, response) { ... }});
Please login to continue.