implemented deletefile