destroy (id, opts) {
    return this.crud('destroy', id, opts)
  }
Using an adapter, destroy the record with the given primary key.

{@link Mapper#beforeDestroy} will be called before destroying the record.
{@link Mapper#afterDestroy} will be called after destroying the record.

@example
// Destroy a specific blog post
PostMapper.destroy(1234).then(() => {
  // Blog post #1234 has been destroyed
});

@example
// Get full response
PostMapper.destroy(1234, { raw: true }).then((result) => {
  console.log(result.deleted); e.g. 1
  console.log(...); // etc., more metadata can be found on the result
});

@fires Mapper#beforeDestroy
@fires Mapper#afterDestroy
@method Mapper#destroy
@param {(string|number)} id The primary key of the record to destroy.
@param {object} [opts] Configuration options. Refer to the `destroy` method
of whatever adapter you're using for more configuration options.
@param {boolean} [opts.adapter={@link Mapper#defaultAdapter}] Name of the
adapter to use.
@param {boolean} [opts.notify={@link Mapper#notify}] See {@link Mapper#notify}.
@param {boolean} [opts.raw={@link Mapper#raw}] See {@link Mapper#raw}.
@returns {Promise} Resolves when the record has been destroyed. Resolves
even if no record was found to be destroyed.
@since 3.0.0
@tutorial ["http://www.js-data.io/v3.0/docs/saving-data","Saving data"]