remove (name, id, opts) {
    const record = this.getCollection(name).remove(id, opts)
    if (record) {
      this.removeRelated(name, [record], opts)
    }
    return record
  }
Wrapper for {@link Collection#remove}. Removes the specified
{@link Record} from the store.

@example <caption>SimpleStore#remove</caption>
const JSData = require('js-data');
const { SimpleStore } = JSData;
console.log('Using JSData v' + JSData.version.full);

const store = new SimpleStore();
store.defineMapper('book');
console.log(store.getAll('book').length);
store.add('book', { id: 1234 });
console.log(store.getAll('book').length);
store.remove('book', 1234);
console.log(store.getAll('book').length);

@fires SimpleStore#remove
@method SimpleStore#remove
@param {string} name The name of the {@link Collection} to target.
@param {string|number} id The primary key of the {@link Record} to remove.
@param {object} [opts] Configuration options.
@param {string[]} [opts.with] Relations of the {@link Record} to also
remove from the store.
@returns {Record} The removed {@link Record}, if any.
@see Collection#add
@see Collection#add
@since 3.0.0