.github/actions/statistics-chart-action/node_modules/@google-cloud/firestore/build/src/write-batch.js
/**
     * Deletes a document from the database.
     *
     * @param {DocumentReference} documentRef A reference to the document to be
     * deleted.
     * @param {Precondition=} precondition A precondition to enforce for this
     * delete.
     * @param {Timestamp=} precondition.lastUpdateTime If set, enforces that the
     * document was last updated at lastUpdateTime. Fails the batch if the
     * document doesn't exist or was last updated at a different time.
     * @returns {WriteBatch} This WriteBatch instance. Used for chaining
     * method calls.
     *
     * @example
     * let writeBatch = firestore.batch();
     * let documentRef = firestore.doc('col/doc');
     *
     * writeBatch.delete(documentRef);
     *
     * writeBatch.commit().then(() => {
     *   console.log('Successfully executed batch.');
     * });
     */
Deletes a document from the database.
@param {DocumentReference} documentRef A reference to the document to be
deleted.
@param {Precondition=} precondition A precondition to enforce for this
delete.
@param {Timestamp=} precondition.lastUpdateTime If set, enforces that the
document was last updated at lastUpdateTime. Fails the batch if the
document doesn't exist or was last updated at a different time.






Deletes a document from the database . @param { DocumentReference } documentRef A reference to the document to be deleted . @param { Precondition = } precondition A precondition to enforce for this delete . @param { Timestamp = } precondition . lastUpdateTime If set enforces that the document was last updated at lastUpdateTime . Fails the batch if the document doesn ' t exist or was last updated at a different time .
delete(documentRef, precondition) {
        reference_1.validateDocumentReference('documentRef', documentRef);
        validateDeletePrecondition('precondition', precondition, { optional: true });
        this.verifyNotCommitted();
        const conditions = new document_1.Precondition(precondition);
        const op = () => {
            return {
                write: {
                    delete: documentRef.formattedName,
                },
                precondition: conditions.toProto(),
            };
        };
        this._ops.push(op);
        return this;
    }
delete ( documentRef , precondition ) { reference_1 . validateDocumentReference ( 'documentRef' , documentRef ) ; validateDeletePrecondition ( 'precondition' , precondition , { optional : true } ) ; this . verifyNotCommitted ( ) ; const conditions = new document_1 . Precondition ( precondition ) ; const op = ( ) => { return { write : { delete : documentRef . formattedName , } , precondition : conditions . toProto ( ) , } ; } ; this . _ops . push ( op ) ; return this ; }
Deletes a document from the database.
Deletes a document from the database .