Skip to content

Rule Hook

OnAssetBeforeDeleted

Back to Index

This hook runs before an Asset Actor is deleted. It can be used to perform tasks or even block deletion using a validationError effect.

Type

{
hook: 'OnAssetBeforeDeleted'
asset: Asset
}

Effects

messageActor Sends a message to another actor after the asset has been deleted. Responses from the target actor is ignored.

validationError Aborts the deletion of the asset and returns the error to the caller.

scheduleJob Schedules a job.

Back to Index