code: function(instance) {
        if (!instance.id) {
          throw new Error("delete(): `id` must be defined");
        }
  
        return api
          .one(config.entity, instance.id)
          .delete();
      }
docs: Makes an API request to delete the instance by id
  @param {Model} instance