code: function(options) {
        options = options ? _.clone(options) : {};
        var model = this;
        var success = options.success;
  
        var triggerDestroy = function() {
          model.trigger('destroy', model, model.collection, options);
        };
  
        if (this.isNew()) {
          triggerDestroy();
          return false;
        }
  
        options.success = function(resp) {
          if (options.wait) triggerDestroy();
          if (success) {
            success(model, resp);
          } else {
            model.trigger('sync', model, resp, options);
          }
        };
  
        options.error = Backbone.wrapError(options.error, model, options);
        var xhr = (this.sync || Backbone.sync).call(this, 'delete', this, options);
        if (!options.wait) triggerDestroy();
        return xhr;
      }
docs: Destroy this model on the server if it was already persisted. Optimistically removes the model from its collection, if it has one. If `wait: true` is passed, waits for the server to respond before removal.