The event occurs before deleting record in database and can cancel default delete statement or validate incoming values.
$conn->event->attach("beforeDelete",handlerFunc);
Parameters handlerFunc:
Availability:
Sample: