delete abstract method
Future
delete(
- String key,
- DbPrincipal principal, {
- DeletePolicy? deletePolicy,
- RepositoryTransaction? transaction,
Deletes the entity from the collection identified by the key
parameter.
This method expects a principal
parameter, which
identifies the user performing the request. Implementations
are advised to confirm if the entity being deleted belongs to
a tenant related to the principal
.
If a non-empty value is passed to the permission
parameter,
the implementation of this method is expected to validate
if the user represented by the principal
does have the
permission before actually inserting the entity. Otherwise,
an error is thrown.
Implementation
Future delete(
String key,
DbPrincipal principal, {
DeletePolicy? deletePolicy,
RepositoryTransaction? transaction,
});