How to trigger deletion od documents on client-side?

Hi,
I want to execute a javascript function, when document is deleted (from list and from from).
Like frappe.ui.form.on(doctype, event, function(){})

Is ther an existing event I can use?

Thanks Patrick