setDocumentExpiration abstract method

  1. @override
Future<void> setDocumentExpiration(
  1. String id,
  2. DateTime? expiration
)
override

Sets an expiration date for a Document by its id.

After the given date the document will be purged from the database

This is more drastic than deletion: It removes all traces of the document. The purge will not be replicated to other databases.

Implementation

@override
Future<void> setDocumentExpiration(String id, DateTime? expiration);