ensure deleted file is not overwriten