How to trigger webhook when FOLDER deleted?

I need a webhook trigger when a FOLDER is deleted. For single files it works fine, but how do I configure it when I delete the folder where I store .pdf files?

When I deleted 1 by 1 .pdf files in FOLDER - webhooks were triggered to delete a single .pdf file, but when I deleted the entire folder it didn’t happen.

Is it possible to configure it? Or maybe handling with external API? Some additional APP for Nextcloud? Or maybe some script?