Skip to main content

Function: BeforeRemove()

BeforeRemove(): MethodDecorator

Defined in: src/decorators/LifecycleHooks.ts:95

Method decorator marking a method to run immediately before an entity is removed or soft-deleted.

Returns​

MethodDecorator

Usecase​

Pre-delete authorization checks, cascade cleanup preparations, or audit snapshots.