remove(entityClass, primaryKey) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }

    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.remove(entityClass, primaryKey)
    })
  }
/**
   * Deletes the specified entity.
   *
   * @param {function(new: AbstractEntity, Object<string, *>)} entityClass The
   *        entity class specifying the type of the entity to delete.
   * @param {(number|string|Date|Array)} primaryKey The primary key identifying
   *        the entity to delete.
   * @return {Promise<undefined>} A promise that resolves when the record has
   *         been deleted.
   */
Deletes the specified entity.
@param {function(new: AbstractEntity, Object)} entityClass The
entity class specifying the type of the entity to delete.
@param {(number|string|Date|Array)} primaryKey The primary key identifying
the entity to delete.
@return {Promise} A promise that resolves when the record has
been deleted.
Deletes the specified entity . @param { function ( new : AbstractEntity Object ) } entityClass The entity class specifying the type of the entity to delete . @param { ( number|string|Date|Array ) } primaryKey The primary key identifying the entity to delete . @return { Promise } A promise that resolves when the record has been deleted .
remove(entityClass, primaryKey) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }
    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.remove(entityClass, primaryKey)
    })
  }
remove ( entityClass , primaryKey ) { if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } return this [ PRIVATE . runOperation ] ( ( operationsProvider ) => { return operationsProvider . remove ( entityClass , primaryKey ) } ) }
Deletes the specified entity.
Deletes the specified entity .