to delete the file from the directory