Recommended Posts

I had two directories which are .Trash-999.

 

I managed to delete the first one by adding my user in permissions with full control.

However the second folder is more troublesome. 

I've added myself to permissions again, unable to delete because of some "unknown error".

 

I've used Unlocker and Lockhunter, both fail to delete it.

 

If I dig into the directories, I can see and delete individual files but the directories themselves I sometimes can't delete. Even if I delete everything out of the directory. Some directories allow me to delete it, some cry it isn't empty, which it is (I've got show hidden files option ticked).

image.thumb.png.dadd335925a4d3d9a186ed7928bbda25.png

 

I read a previous trick here which said to move it to my C drive and call it Windows.old and run a disk cleanup. The problem is my C drive hasn't enough room to spare since this directory is over 270gb in size.

This is what happens when I try to delete the trash-999 directory:

 

image.thumb.png.c30f55e6b29adfcadf9770e83d8bb425.png

 

Any ideas?

 

For those wondering how I got in this state, here is a totally skippable back story.

 

I installed Windows 10 LTSB version. For whatever reason it did not like to play with my Onedrive directory on another drive. It kept saying all the files were corrupt. 

At a guess I would say that the Onedrive folder acts as some kind of symbolic link to somewhere. So my solution was to delete the onedrive folder and re-download all my files.

I couldn't delete the folder however, similar errors to this.

I loaded up a Linux ISO from USB and delete the files. Great. But being as smart as me, I didn't empty the trash after deletion. So when I rebooted I had this big fat trash directory.

Even booting back into Linux didn't work as the errors were similar. Unknown errors, couldn't find files etc.

 

I just want to reclaim my HD space back and I am lost on how I force a deletion of a directory. Surely there is a way to just nuke it?

Link to comment
https://www.neowin.net/forum/topic/1364842-cant-delete-trash-999-folder/
Share on other sites

whenever i've run across a broken directory like that I just boot into a linux live cd/usb and delete the folder from there since linux just ignores the occasionally broken permission system of NTFS :)

3 hours ago, Jim K said:

Does this thread help any?

 

 

I tried that thread first. Tried everything in it, still no dice. 

21 minutes ago, Brandon H said:

whenever i've run across a broken directory like that I just boot into a linux live cd/usb and delete the folder from there since linux just ignores the occasionally broken permission system of NTFS :)

As I mentioned, even booting into a live CD doesn't allow me to delete as it (can't show you the exact errors) brings up messages along the lines or unable to access files.

7 minutes ago, »X« said:

I tried that thread first. Tried everything in it, still no dice. 

As I mentioned, even booting into a live CD doesn't allow me to delete as it (can't show you the exact errors) brings up messages along the lines or unable to access files.

even from terminal level? you should be able to ignore the errors and delete the directory with the following command

sudo rm -rf (directory path)

the -rf is 2 flags, recursive (gets any sub folders), and force (ignores all errors); and running with sudo gives the command max root permission

 

this command should work no matter what, it's basically a hard kill switch command for files when run as root lol.

 

https://ss64.com/bash/rm.html

4 hours ago, Brandon H said:

even from terminal level? you should be able to ignore the errors and delete the directory with the following command


sudo rm -rf (directory path)

the -rf is 2 flags, recursive (gets any sub folders), and force (ignores all errors); and running with sudo gives the command max root permission

 

this command should work no matter what, it's basically a hard kill switch command for files when run as root lol.

 

https://ss64.com/bash/rm.html

Seems this directory is cursed.

 

I just tried that in an Ubuntu live USB.

 

I get the following:

 

rm: cannot remove 'files/OU/ESSAYS': Directory not empty

 

Even though everything I am reading is saying -rf should removed everything, empty or not, it's crying because it's not empty.

 

Any other nuke commands you are aware of?

 

Edit: Just to add.

Do I need to get someone to remove a curse from this drive?

Would a drill through it fix it?

 

The only way it seems I can delete this folder is to format the drive.

 

While in Ubuntu, I tried deleting the folder.

image.thumb.png.7518aaeb456ebc6f54aec7843689b3cd.png

 

 

If I go into the directory, I can seemingly delete the folders.

When I do, I get a new directory appear in the folder called expunged

 

If I delete those folders, then seem to not delete and rename themselves.

image.thumb.png.064a36cbf79eb74f46dadb0e4a1c70f5.png

 

 

Those "2"s are each attempt I hit delete.

 

 

Edited by »X«
10 minutes ago, »X« said:

Seems this directory is cursed.

 

I just tried that in an Ubuntu live USB.

 

I get the following:

 

rm: cannot remove 'files/OU/ESSAYS': Directory not empty

 

Even though everything I am reading is saying -rf should removed everything, empty or not, it's crying because it's not empty.

 

Any other nuke commands you are aware of?

that was with using the -rf flags? that's very odd indeed.

 

there's the alternate command meant specifically for folders but there's no force flag on it which is why most recommend rm -r

 

https://ss64.com/bash/rmdir.html

 

if that doesn't work then the entry is likely corrupt in the actual partition table I would have to think. something similar happened to me several years back on an old Compaq, I ended up having to format to get rid of the entry :/

tried a bit of googling and I found a couple things you could try. apparently it's not an unknown issue just requires different methods to fix depending

 

https://askubuntu.com/questions/566474/why-do-i-get-directory-not-empty-when-i-try-to-remove-an-empty-directory

 

a couple things suggested are renaming the directory then run the delete command or move it back to the trash/recycle bin again and empty it

 

----

 

on the Windows side you could try command line or powershell as well, opened as admin.

https://stackoverflow.com/questions/97875/rm-rf-equivalent-for-windows - has some interesting info you could try

 

Command Prompt:

Quote

How to delete a folder

 

Open the command prompt by typing “CMD” in the search field in the taskbar and clicking on “Command Prompt”. Navigate to the folder containing the folder to be deleted by using the ‘cd’ command. Type the following command in the command prompt:

 


RD /S /Q C:\Users\HP1\Documents\folder1

 

RD stands for remove directory.

/S causes the deletion of all subfolders and files

/Q will not show Y/N confirmation and will delete the files silently

 

Powershell:

Remove-Item "targetdirectory" -Recurse -Force

 

Thanks.

 

I just tried it and it leads down another rabbit hole.

 

Reparse Points.

 

When I tried to delete the directory, I got this:

 

"ERROR_REPARSE_TAG_MISMATCH: There is a mismatch between the tag specified in the request and the tag present in the reparse point."

 

Onedrive sure did a number on this directory.

Hello,

Have you run Chkdsk against the volume to verify there is no filesystem corruption?  Also, have you tried using TakeOwn to take ownership of the directory and everything inside it?

Regards,


Aryeh Goretsky

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • AI is the beginning, wait until real robots replace more jobs, specifically jobs that require physical work.
    • AI is indeed eliminating jobs, and Oracle just proved it by Hamid Ganji There’s no question that AI has become the hottest trend in workplaces, and every company is trying to adopt AI-driven solutions across its operations. While some industry leaders repeatedly say AI won’t lead to massive layoffs, recent data suggest that AI is actually one of the main reasons some companies are reducing their workforce. According to Oracle’s annual regulatory filing, the company has laid off about 21,000 employees, or 13% of its workforce, amid increasing AI adoption. “The adoption and deployment of AI technologies across our operations have resulted, and may continue to result, in reductions to our workforce,” Oracle said in the filing. The software giant now has approximately 141,000 full-time employees, a notable decrease from 162,000 during the same period last year. Restructuring expenses, including severance payments, cost Oracle $1.84 billion in fiscal 2026. Additionally, around 49,000 Oracle employees were based in the U.S., while approximately 92,000 were employed internationally. Like many other companies, Oracle has fully embraced AI and concentrated much of its efforts on the technology. The company is also a key participant in the United States’ $500 billion Stargate Project, which aims to build multiple AI data centers across the country. When it comes to AI adoption and its impact on the workforce, opinions remain divided. NVIDIA CEO Jensen Huang, whose company has been one of the biggest beneficiaries of the AI boom, recently said in an interview that attributing job cuts to AI is a “lazy” narrative. “The narrative that connects AI to job loss, for many of the CEOs that are doing it – it is just too lazy. AI has just arrived, how is it possible they're already losing jobs?” Huang said. However, statistics and recent reports tell a different story. According to Layoffs.fyi, 196 tech companies have laid off about 119,800 employees so far this year. Reducing staff and replacing roles with AI agents could become one of the most significant trends in the job market in the years ahead.
    • Zoom Workplace 7.1.0.41345 by Razvan Serea Zoom Workplace for Windows is a reliable video conferencing tool that makes it easy to connect and collaborate. With features like messaging, file sharing, and app integrations, it’s designed to streamline teamwork. You’ll get high-quality audio and video, strong security with end-to-end encryption, and an intuitive interface—all of which help remote teams and businesses stay productive and connected. Zoom Workplace key features: High-Definition Video & Audio: Provides clear, reliable communication for virtual meetings. End-to-End Encryption: Ensures secure communication with strong data protection. Multi-Factor Authentication: Adds an extra layer of security for user accounts. Integration with Productivity Apps: Supports seamless integration with Microsoft Office, Google Workspace, and more. File Sharing: Easily share files during meetings for efficient collaboration. Real-Time Messaging: Enables team chat for ongoing communication. Collaborative Whiteboarding: Allows teams to brainstorm and collaborate visually. Webinar Support: Host large webinars with interactive features. Administrative Controls: Manage user permissions, meeting settings, and security features. Cloud Storage: Automatically stores meetings and files in the cloud for easy access. Cross-Platform Support: Available on Windows, macOS, and mobile devices. Meeting features: Virtual Backgrounds: Customize your background for meetings to maintain privacy or enhance professionalism. Touch Up My Appearance: Automatically smoothens skin tone for a more polished video appearance. Breakout Rooms: Divide meetings into smaller sessions for group discussions or workshops. Live Transcription: Automatically generate real-time captions during meetings for accessibility. Zoom Apps: Integrate third-party applications directly into Zoom for enhanced functionality. Meeting Reactions: Participants can use emojis for quick, non-verbal feedback during meetings. Polling: Conduct live polls during meetings to gather instant feedback from participants. Attention Tracking: Monitors participant attention during meetings to ensure engagement. Closed Captioning: Enable manual or automatic captions for a more inclusive experience. Webinar Replay: Record and share webinars with analytics for audience engagement. Download: Zoom 64-bit | 145.0 MB (Free, paid upgrade available) Links: Zoom Website | Zoom ARM64 | Zoom Installers | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • UK funds £60M AI labs to challenge US tech dominance with open-source models by Paul Hill The UK government has awarded £60 million to Oxford University and University College London to help keep the country in the AI race by focusing on open-source, low-hardware alternatives. This is in stark contrast to the expensive, closed-source, and high-hardware-requirement models being created in the United States and elsewhere. The money will be shared among two new academic research labs over six years to help them redesign the fundamental mathematics and architectures of AI to help the UK reduce its reliance on a handful of US tech firms. Commenting on the development, AI Minister Kanishka Narayan said: Initially, the government planned to fund just one lab with a £40 million investment, but with this update, two labs will now get access to a larger pool of funds. The labs are expected to invest in the top AI researchers at every career stage, with £2 million per lab being set aside for hiring at least ten doctoral students. The government hopes that this will grow the UK’s talent in the field of AI. The labs are also expected to work closely with the leaders in British AI research, such as the Alan Turing Institute and UKRI’s AI research hubs. This will allow the various teams to collaborate and create new solutions faster than they could alone. This development is pretty interesting for a number of reasons, chiefly that it could create a long-term challenge for US tech firms if these labs successfully scale these open-source architectures that bypass the proprietary ecosystems. It could also give British businesses and public sector organizations access to AI features without paying high licensing fees to foreign providers or needing to invest in specialized server infrastructure.
  • Recent Achievements

    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
    • Dedicated
      tuben earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      464
    2. 2
      +Edouard
      182
    3. 3
      PsYcHoKiLLa
      97
    4. 4
      Michael Scrip
      89
    5. 5
      neufuse
      70
  • Tell a friend

    Love Neowin? Tell a friend!