index.js
/**
   * Deletes an existing object.
   *
   * @param  {Number}  id - The id of the object to be deleted
   * @return {Promise} Resolved with the removed object or rejected with an error.
   */
Deletes an existing object.
@param  {Number}  id - The id of the object to be deleted
@return {Promise} Resolved with the removed object or rejected with an error.
Deletes an existing object . @param { Number } id - The id of the object to be deleted @return { Promise } Resolved with the removed object or rejected with an error .
async delete (id) {
    try {
      const el = await this.list(id, false)
      await el.remove()
      return el.toJSON()
    } catch (err) {
      throw err
    }
  }
async delete ( id ) { try { const el = await this . list ( id , false ) await el . remove ( ) return el . toJSON ( ) } catch ( err ) { throw err } }
Deletes an existing object.
Deletes an existing object .