Delete folders and subfolders

Posted on 2011-02-21
Last Modified: 2012-05-11
I have a folder located on a NAS.
It has 5 subfolders, all empty. I have taken ownership and given myself full control of the folder and sub folders.
When I try to delete the folder I get a message telling me that I need to give myself permission to make changes.
I've also tried to delete it from a command prompt with no luck.
How can I force the deletion of the folders?
Question by:LindyS
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 11

Expert Comment

by:Kruno Džoić
ID: 34949340

Author Comment

ID: 34949365
Yes, I took ownership of the folder and applied it to all the subdirectories.
I also gave myself full control over the folder and sub directories.
LVL 11

Expert Comment

by:Kruno Džoić
ID: 34949409
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

by:Suryanarayan Balakrishnan Iyer
ID: 34949410
You would have the right to create or delete share if you have rights to do so. Check if you have the appropriate rights to do so or in the ACL somewhere you have deny against you.
1. You would have a nas admin account. Login using the NAS admin group and then take owner ship and do the needful.
2. You can also delete them using the NAS admin account.

Expert Comment

ID: 34949423
Have you tried deleting each sub folder individually?  It may just be one folder that is giving issues.    Can you do a net file on the nas and see if it thinks some has it open at all?

Expert Comment

by:Suryanarayan Balakrishnan Iyer
ID: 34949427
To take the owner ship on the share use the DC on which NAS is configured. Example:
We have NAS configured on our primary DC and the account XXX of the DC is used as NAS admin account. We login to the DC with XXX to take ownership in case of situations where user create their own share and don't give permission so that others would work on it.

Accepted Solution

LindyS earned 0 total points
ID: 34950863
I finally figured out how to delete the folders.

RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory

/Q Quiet mode, do not ask if ok to remove a directory tree with /S

I tried del, but that didn't work. rd /S was the answer.

Author Closing Comment

ID: 34990704
Did some more research and found the solution

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question