Deletes a record for the specified entity type using its primary key.
The action parameters containing:
ActionResultSimple with:
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Protected analyzeAnalyze error from entity save/delete operation and return appropriate result
Protected getExtract and validate the EntityName parameter
Optional error?: ActionResultSimpleOptional value?: stringProtected getGet entity metadata and create entity object
Protected getExtract and validate the Fields parameter
Optional error?: ActionResultSimpleOptional value?: Record<string, any>Protected getExtract and validate the PrimaryKey parameter
Optional error?: ActionResultSimpleOptional value?: Record<string, any>Protected handleHandle generic errors with consistent formatting
Protected loadLoad an existing record using primary key
Protected setSet field values on an entity
Generic action for deleting entity records from the database. This action provides a flexible way to delete records for any entity type by accepting the entity name and primary key values as parameters.
Example