deleteQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    validateEntityClass(entityClass)

    if (this[PRIVATE.activeTransaction]) {
      return this[PRIVATE.activeTransaction].deleteQuery(
        entityClass,
        filter,
        order,
        offset,
        limit
      )
    }

    return this.runTransaction((transaction) => {
      return transaction.deleteQuery(entityClass, filter, order, offset, limit)
    })
  }
/**
   * Deletes the entities matched by the specified query. If any of the matched
   * entities are currently managed by this entity manager, they will become
   * detached.
   *
   * @template {T} extends AbstractEntity
   * @param {function(new: T, data: Object<string, *>)} entityClass The entity
   *        class, specifying the type of entities to delete.
   * @param {?(undefined|number|string|Date|Array|IDBKeyRange|Object<string, (number|string|Date|Array|IDBKeyRange)>|function(*, (number|string|Date|Array)): boolean)=} filter
   *        The filter, restricting the records deleted by this method. If a
   *        function is provided, the first argument will be set to the record
   *        and the second argument will be set to the primary key of the
   *        record.
   * @param {?(CursorDirection|string|string[]|function(*, *): number)} order
   *        How the records should be sorted.
   * @param {number} offset The index of the first record to delete. The
   *        records are numbered from {@code 0}, the offset must be a
   *        non-negative integer.
   * @param {?number} limit The maximum number of records to delete. The limit
   *        must be a positive integer, or {@code null} if no limit should be
   *        imposed.
   * @return {Promise<number>} A promise that will resolve after the records
   *         have been deleted. The promise will resolve to the number of
   *         deleted records.
   */
Deletes the entities matched by the specified query. If any of the matched
entities are currently managed by this entity manager, they will become
detached.

@template {T} extends AbstractEntity
@param {function(new: T, data: Object)} entityClass The entity
class, specifying the type of entities to delete.
Deletes the entities matched by the specified query . If any of the matched entities are currently managed by this entity manager they will become detached . @template { T } extends AbstractEntity @param { function ( new : T data : Object ) } entityClass The entity class specifying the type of entities to delete .
deleteQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    validateEntityClass(entityClass)
    if (this[PRIVATE.activeTransaction]) {
      return this[PRIVATE.activeTransaction].deleteQuery(
        entityClass,
        filter,
        order,
        offset,
        limit
      )
    }
    return this.runTransaction((transaction) => {
      return transaction.deleteQuery(entityClass, filter, order, offset, limit)
    })
  }
deleteQuery ( entityClass , filter = null , order = "next" , offset = 0 , limit = null ) { validateEntityClass ( entityClass ) if ( this [ PRIVATE . activeTransaction ] ) { return this [ PRIVATE . activeTransaction ] . deleteQuery ( entityClass , filter , order , offset , limit ) } return this . runTransaction ( ( transaction ) => { return transaction . deleteQuery ( entityClass , filter , order , offset , limit ) } ) }
Deletes the entities matched by the specified query.
Deletes the entities matched by the specified query .