$def with (stage, result)
This will delete all database entries of files which do not exist any more.
Result of cleanup: $result