Solved

Can't delete folders or files in them

Posted on 2013-12-18
9
262 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 94

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 94

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
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.

 
LVL 1

Author Comment

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

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 94

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
non-domain members are not prompted for credentials 18 60
Application Crash 2 25
Change administrator password on server 13 93
Server Shares and Excel files 2 13
OfficeMate Freezes on login or does not load after login credentials are input.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

820 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