Added $filename validation in deleteFile
typo