Skip to main content
Version: 2.0.0

Interface: EntityOnDeleteProps<M, UserType>

Parameters passed to hooks when an entity is deleted

Type parameters​

NameType
Mextends Record<string, any> = any
UserTypeextends User = User

Properties​

collection​

• collection: ResolvedEntityCollection<M>

collection of the entity being deleted

Defined in​

packages/firecms/src/types/entity_callbacks.ts:156


context​

• context: FireCMSContext

Context of the app status

Defined in​

packages/firecms/src/types/entity_callbacks.ts:176


entity​

• entity: Entity<M>

Deleted entity

Defined in​

packages/firecms/src/types/entity_callbacks.ts:171


entityId​

• entityId: string

Deleted entity id

Defined in​

packages/firecms/src/types/entity_callbacks.ts:166


path​

• path: string

Path of the parent collection

Defined in​

packages/firecms/src/types/entity_callbacks.ts:161

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!