Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can't delete folders or files in them

Posted on 2013-12-18
9
Medium Priority
?
266 Views
Last Modified: 2013-12-23
I have several folders on one server that I cannot delete.  I can change their name, change permissions, change whatever about them, but I cannot delete them.  If I try, I get a "This item is no longer located in xxxx verify location and try again." message.  I can open the folders, the folders in the folder, the files in the folders, etc.

I have taken ownership of the file, I have changed permissions to allow everyone to have full control of it; I have tried pretty much all of the tricks I can think of.  Still cannot delete it.

Any ideas?
0
Comment
Question by:mjburgard
  • 5
  • 4
9 Comments
 
LVL 99

Expert Comment

by:John Hurst
ID: 39726852
Server 2008 is something like Windows 7. Are you looking at a pointer to the folder?  That is, are the folders in Users, and perhaps you are looking in Documents and Settings?

See if you can find the folders in Users under your login name.

.... Thinkpads_User
0
 
LVL 1

Author Comment

by:mjburgard
ID: 39726860
The folder is on a separate drive than C:  I am going directly to the folder.
0
 
LVL 99

Expert Comment

by:John Hurst
ID: 39726898
Make sure the username you are using has at least Modify permission to the root folder holding the data.

.... Thinkpads_User
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
LVL 1

Author Comment

by:mjburgard
ID: 39726911
I own the folder and have full control permissions
0
 
LVL 99

Expert Comment

by:John Hurst
ID: 39726931
The windows stuff appears fine. Thanks for the update.

Open a Command Shell using Run as Administrator. Navigate to a folder holding just files (no other folders). Delete the files using the DEL command. If they won't delete, use ATTRIB to see what attributes they have. Change if you can. Then DEL the files.

Repeat for all files in all folders until only folders are left. Then delete the folders. Check the ATTRIB(utes) on the folders if need be.

It would appear some file has change attributes which will not allow delete.

I use Total Commander in a case like this as it will show hidden files that Windows Explorer will not always reveal.

.... Thinkpads_User
0
 
LVL 1

Author Comment

by:mjburgard
ID: 39727380
Still no go.  I cannot get the attrib function to work on some of the files or folders - It does not thing they are there either.  
I can get to them in the cmd box, but when I try to run the ATTRIB on them, it says they are not at that location.

Total commander cannot do anything with them either.
0
 
LVL 99

Expert Comment

by:John Hurst
ID: 39727386
I think you must be using a pointer to the folder (Windows 7 / 2008 use this concept out of Linux).

Try making another userid on your Server that is a member of the administrators group. Log in as that userid and try deleting the files from a different userid.

... Thinkpads_User
0
 
LVL 1

Accepted Solution

by:
mjburgard earned 0 total points
ID: 39727464
I found the answer from another discussion site:

I had to use the cmd prompt, and cd to where the directory was.
Then do a dir /x /a to give me the short name of the folder.

I could then do a rd /s using the short name (e.g. rd /s cantde~1)


That solved the issue.  Thanks for all the suggestions -
0
 
LVL 1

Author Closing Comment

by:mjburgard
ID: 39735703
I found this answer on another site.  None of the suggestions before this solved the problem.  This is not my answer, but the person from whom I did get this answer is not on expert's exchange - that I know of.
0

Featured Post

Problems using Powershell and Active Directory?

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

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
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…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

885 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