Skip to main content

Deleting Records

Use DeleteAsync to remove an entity by its ID.

Delete a record

Error handling

DeleteAsync throws InvalidOperationException if the deletion fails — for example, when the entity has dependent records:
Deletions are permanent. There is no undo. Make sure you are deleting the correct entity.