Prompt user for document deletion when folder is deleted

Hello development experts,

I am trying to prompt the user to see if they would like to delete all of the documents in a folder when they ask that a folder be deleted. If yes then delete all of the documents, if not then do what Lotus does by default and not delete them. In all of my research I have not figured out a way for that to be done. It would be nice if there was a QueryDelete option for folders. Any help would be appreciated.

Thanks!!