Executing actions before deleting or cancelling objects is possible from Tally.ERP 9 Series A Release 4.8 onwards. The system eventsBefore Delete Object and After Delete Object get triggered whenever any of the primary objects defined in the deleted Tally Schema. For example, Object Company, Voucher, Ledger, and so on.
As the names suggest, the events Before Delete Object and After Delete Object are triggered before and after the deletion of the object. The current object context would be available in both these events. Triggering of the eventAfter Delete Object confirms the successful deletion of the object.