interface CommonDestroyOptions {
    hardDelete?: boolean;
    manualOnDelete?: ManualOnDelete;
}

Hierarchy (view full)

Properties

hardDelete?: boolean

If set to true, paranoid models will actually be deleted instead of soft deleted.

manualOnDelete?: ManualOnDelete

Manually handles the behavior of ON DELETE in JavaScript, instead of using the native database ON DELETE behavior. This option is useful when:

  • The deletion is a soft deletion.
  • You wish to run JS delete hooks for the cascading models.

Default

'paranoid'