Solved

Can't delete folders or files in them

Posted on 2013-12-18
9
260 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 92

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 92

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
 
LVL 1

Author Comment

by:mjburgard
ID: 39726911
I own the folder and have full control permissions
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 92

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 92

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
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 process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now