broadcast the deletion of a sharepoint

I was wondering, is there a way to programmatically delete a share point from each device connected to it?

So far I tried to search for any potential key in the folder dictionary but couldn’t find anything useful there.

The only way I could imagine, at the moment, is by just modifying the label of that folder with a special string so to intercept this information and run a function that could delete that folder. Is there any more elegant / interesting approach that I could use?

Thanks in advance!