Skip to main content

Overview

useDeleteEntity returns a function that deletes an entity. If called from inside an EntityProvider, the provider’s entity state is set to undefined after deletion.

Usage Example

Parameters

entityId
string
required
The ID of the entity to delete.

Returns

Promise<void> — resolves when the entity is deleted.