editing almost ready - problem with deleting files from directory