Solved

Delete folders and subfolders

Posted on 2011-02-21
8
1,381 Views
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?
0
Comment
Question by:LindyS
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 11

Expert Comment

by:Kruno Džoić
ID: 34949340
0
 
LVL 3

Author Comment

by:LindyS
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.
0
 
LVL 11

Expert Comment

by:Kruno Džoić
ID: 34949409
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 3

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.
0
 
LVL 4

Expert Comment

by:loki_loki
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?
0
 
LVL 3

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.
0
 
LVL 3

Accepted Solution

by:
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
tree.

/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.
0
 
LVL 3

Author Closing Comment

by:LindyS
ID: 34990704
Did some more research and found the solution
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

830 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