Revert "deleteFile"

This reverts commit 0bbd56e64b3b9c47604058488dbf98d1613b4793.