Fires when a file or folder is removed from the watched folder.

Parameters

string
required
The removed file or folder, relative to the workspace root.

Behavior

  • Moving a file out of the watched folder arrives as a deletion, since from this folder’s point of view it is gone.
  • The path no longer exists by the time you are told, so isfile on it returns false.
  • Bulk deletes may overflow. Removing a folder with very many files can exceed the notification limits and collapse into OnOverflow instead.

Example