Solved

Can't delete folders or files in them

Posted on 2013-12-18
9
263 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 95

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 95

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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 1

Author Comment

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

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 95

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

752 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