XPAGE equivalent for $$ReturnDocumentDeleted

Hey Guys. I have a simple question :

Is there any XPAGE equivalent for $$ReturnDocumentDeleted form?

i suppose there must be one (i cant believe i would have to do an XHRPost each time a document is clicked to test if it exists).

Thanks for any hint.