code: function(_options){
        var self = this, //model
            options = _options || {},
            success = options.success; //custom success function passed in _options
  
        options.success = function(){
          if(self.collection){
            self.collection.models.remove(self);
            delete self.collection;
          }
          if(success) success(self, data);
        };
  
        if(this.isNew()){
          options.success();
          return false;
        }
  
        var xhr = this.sync.call(this, 'destroy', this, options);
  
        if(!options.wait){
          options.success();
          delete options.success;
        }
  
        return xhr;
      }
docs: Destroy the model on the server and remove it from its collection (if exists) Options for the sync method can be passed as an object If you set *wait: true* in the options' object it will remove the model from the collection without waiting for the server response