Skip to main content
Version: 3.0.0-beta

Function: deleteEntityWithCallbacks()

deleteEntityWithCallbacks<M, UserType>(__namedParameters): Promise<boolean>

This function is in charge of deleting an entity in the datasource. It will run all the delete callbacks specified in the collection. It is also possible to attach callbacks on save success or error, and callback errors.

If you just want to delete any data without running the onPreDelete, and onDelete callbacks, you can use the deleteEntity method in the datasource (useDataSource).

Type Parameters​

• M extends Record<string, any>

• UserType extends User

Parameters​

• __namedParameters: DeleteEntityProps<M> & object & object

Returns​

Promise<boolean>

Defined in​

packages/firecms_core/src/hooks/data/delete.ts:46

Sign up to our newsletter to get the latest news and updates. No spam!