delete method

Future<void> delete([
  1. TransactionId? transactionId
])

Deletes the document. The delete will be reflected optimistically locally and will be applied to the server later. If a transactionId is provided, the delete will be applied to the server as an atomic operation together with the rest of the operations in the transaction and the delete will not reflect locally until the transaction is completed locally.

The returned Future will complete once the delete has been applied to the server or immediately if the delete is part of a transaction.

Implementation

Future<void> delete([TransactionId? transactionId]) =>
    _dataManager.applyOutgoingMutation(
        Mutation.delete(
          squidDocIdObj: parseSquidDocId(squidDocId),
        ),
        transactionId);