Solved

Can't delete folders or files in them

Posted on 2013-12-18
9
259 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 90

Expert Comment

by:John Hurst
Comment Utility
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
Comment Utility
The folder is on a separate drive than C:  I am going directly to the folder.
0
 
LVL 90

Expert Comment

by:John Hurst
Comment Utility
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
Comment Utility
I own the folder and have full control permissions
0
Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

 
LVL 90

Expert Comment

by:John Hurst
Comment Utility
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
Comment Utility
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 90

Expert Comment

by:John Hurst
Comment Utility
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
Comment Utility
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
Comment Utility
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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

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…
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 tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now