user3093982
user3093982

Reputation: 11

How can I delete a folder which it can't be done easily?

There is a folder named Recycler in the directory of my external hard drive and it has a subfolder named cvx which I cannot delete it. I used cmd to do this. I wanted to change it using attrib -h -s /d /s, but it reported Access Denied -L:\Recycler\cvx, I also tried to delete it using del cvx, but it couldn't be done. Could you help me with this?

Thank you in advance.

Upvotes: 1

Views: 169

Answers (2)

Evan
Evan

Reputation: 594

You could try to change the access permissions using the dialog in windows explorer

  1. Right-click a file or folder > properties
  2. Open "security" tab
  3. Click edit button
  4. Click on current user's name
  5. Ensure "full control" "allow" box is checked
  6. Click "ok"
  7. Click "ok"

Attempts to delete should be made easier by that.

Upvotes: 1

Knuckle-Dragger
Knuckle-Dragger

Reputation: 7046

Access Denied sounds like a permissions issue.

takeown /f L:\Recycler /r /d y
icacls L:\Recycler /grant administrators:F /t
rd /s/q "L:\Recycler\cvx"

Upvotes: 1

Related Questions