code: def on_deleted(self, event):
          
          key = 'filesystem:file_deleted'
          data = {
              'filepath': event.src_path,
              'is_directory': event.is_directory,
              'dirpath': os.path.dirname(event.src_path)
          }
  
          bmsg = BroadcastMessage(key=key, data=data)
          BroadcastManager.broadcast(bmsg)
docs: Event Handler when a file is deleted