cleanup

open suspend fun cleanup(secureAreaRepository: SecureAreaRepository, storage: Storage)

Delete this metadata, called when the document to which it belongs is going away.

In particular, data that resides in the storage and the secure area should be deleted.

Parameters

secureAreaRepository

secure area repository to look up an appropriate SecureArea

storage

interface to the storage