Can not delete corrupted folder

Hi there,
I'm using SharePoint Foundation 2010 and am having problem with one of the site collections.
It's a simple 'Team site'. The problem is that I can not delete the certain folder, which seems to be corrupted.
Symptoms:
if I try to delete it I receive error "Access Denied", even though I use farm admin account.
if I try to 'Manage permissions', I receive error "Can not complete this action".
if I try to 'Edit Properties' (rename library) I receive error "Access Denied".
'View Properties' works good.
Looking in WebDav, the folder doesn't exist.
if I try to create a new folder with the same name within the same root library, I receive error that folder already exists.
Steps taken:
1. the entire site collection was backed up (using Backup-SPSite) and restored (Restore-SPSite) to the newly-created site collection within another Web App
and content database - the corrupted folder was carried over and the issue remained the same.
2. tried to use .NET methods to delete this folder but received error:
$rabbit = Get-SPWeb "https://site1.sharepoint.local/BD"
$damaged_folder = $rabbit.GetFolder("Services/Technical Team/Mit")
attempted to delete:
PS C:\Windows\system32> $damaged_folder.Delete()
Exception calling "Delete" with "0" argument(s): "Cannot remove file "Mit". Error Code: 16389."
attempted to move to Recycle Bin:
PS C:\Windows\system32> $damaged_folder.Recycle()
Exception calling "Recycle" with "0" argument(s): "Cannot remove file "Mit". Error Code: 16389."
Looking at the properties of $damaged_folder, I've noticed that property 'EffectiveRawPermissions' was blank, while for the normal folder it was set to 'FullMask'
I've tried to update it but received an error:
PS C:\Windows\system32> $damaged_folder.EffectiveRawPermissions = "FullMask"
"EffectiveRawPermissions" is a ReadOnly property.
Any help is greatly appreciated!

I am facing the same
problem.
I tried to delete the folder with a powershell command and with a console application. The result is :
Exception calling "Delete" with "0" argument(s): "Cannot remove file "Folder". Error Code: 16389."
At line:1 char:77
+ [Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges({$folder.Delete<<<< ()})
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
The last possibility it's maybe to remove lines on the database!
Does anyone has triedthis solution?
Thanks in adavance.

Similar Messages

  • Can not delete backup  folder

    I used AirportExtreme connected harddrive as timemachine backup drive at first, but then decided to use a separate internal drive as backup drive, so I try to move the file folder "Backups.backupdb" in the wifi connected hard drive to trash to delete it, but it keep saying I have some files in use and can not finish the deletion. Sometimes it said Safari is in use, some time "message" is in use, etc, I quit all programs but still of no use. any idea how I can delete this big backup folder?

    you shouldn't have tried to do it using finder. the easiest is to connect the wifi drive directly to the computer and erase it using disk utility. that will get rid of anything trashed on that drive too.

  • I can not delete any folder in my external hard how can i do this?, i can not delete any folder in my external hard how can i do this?, i can not delete any folder in my external hard how can i do this?

    actally i drag files to trash but mac said you can not do this action ??????

    Sounds to me that the external harddisk is using the NTFS file system which OSX can only read but not write (and thus not delete).
    Check with Disk Utility in OSX if it is so.
    For full read and write access on a NTFS-harddisk you need a third-party helper like the free NTFS-3G or Fuse4X or the commercial Paragaon or Tuxera NTFS for Mac.
    Stefan

  • Can not delete "documents" folder in iphone photo album

    I don't know how it happened but I opened my photo album recently and noticed that there is a roll in there called "Documents". When I open it there are several photos, one of which is a document on how to use windows fax and scan, a few others are generic windows desktop photos and a few others are from a website I designed a long time ago. My suspicion is that it's from the airsharing app i used to have.
    I am not able to delete these documents. Anyone have any idea how to get rid of them? Hopefully without a reset of my phone.
    I included a picture here:
    http://img151.imageshack.us/i/photovaj.jpg/
    (you may have to copy and paste the link?)
    Thanks for the help!

    Did you try to copy the folder to another place and delete it afterwards in the photo album on your pc and apply a sync?

  • IPhone 5 can not delete emails. Will not move to trash folder or empty trash

    iPhone 5, I can get mai. I can send mail. I can not delete mail. If i click to send the read mail to trash folder... error ca not move mail to trash folder.
    I can move read mail to the trash folder, but can not empty the folder...
    HELP

    Read this thread https://discussions.apple.com/message/5616151#5616151

  • I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I ha

    I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I have tried turning on and of Hiding Files in Finder and what not with no success. So, how do I delete this folder. Remember, I am not extremely familiar with technical terms.

    I recommend you erase the TC.. it is the easiest and fastest solution.
    In Airport utility open the disk tab and select erase.. choose quick erase.. it will take less than 1min.
    Start again but copy files in small amounts.

  • I have emails that I can not delete from my Junk mail folder. How do I permanently delete them?

    I have emails that I can not delete from my Junk mail folder. How do I permanently delete them?

    Weird.
    Someone might stop by who has experienced/fixed/read about this before.  In the meantime...
    By "re-indexed my email" do you mean you rebuilt the mailbox via the "Rebuild" command in the Mailbox menu?  Did you try that for all the affected mailboxes?
    Also, you might try experimenting with the settings in Mail, Preferences, Accounts having to do with whether junk mail messages are stored on the server and whether they are to be deleted.
    Does this behavior persist when you are not connected to the internet?

  • I have a corrupt email, that I can not delete via normal actions.  How can I get rid of this email?

    I have a corrupt email, that I can not delete with normal actions.  How do I get rid of it?

    The email was recieved from Fidelity (whom I get 1000's of email from.  The eamil account is an msn account that has wooked flawlessly for years.  The email deleted from my msn account on other computers, it is only on my Mac using my the supplied email viewer.  The message is :  Can not move this email to trash.  Input output error.

  • How do I delete a folder that I moved to Trash from my external backup drive when a virus was detected? Trash will not delete the folder.

    I have tried unsuccessfully to remove a folder from Trash. My anti-virus program (Sophos) detected a virus which had to  be manually removed. I tried (unsuccessfully) to find and remove the infected file. I moved the Folder from my external backup drive and placed it in Trash. Now I cannot get Trash to delete the folder. It asks me if I wish to delete "unlocked" or "all" items. Either selection does not delete the folder. I went to change the permissions to "read & write" and unlocked the folder, but it is still there. I tried to "move" the folder from Trash back to the external harddrive but it seems I can only "copy" it and not "move" it. I am afraid that by copying it, I will not have the folder in two locations (Trash & External HD).
    Would appreciate any suggestions and guidance on this. I hope that I have explained the problem clearly!
    Thank you!

    Before deleting it we should know more about this folder and its contents.
    If it is invected and is using other apps, or other apps are still using it, then it cannot be deleted in the normal manner.
    You might contact Sophos and ask them about it.
    If you are using TM or have a backup of your system before the infection occurred, then you can delete the item(s) in Trash, but there is the possiblity of system corruption and the need for a reinstall, if any of these files are necessary for the OS to work properly, even though they are infected.
    Sophos may not have been able to remove the infection from inside a file which is why they suggested manual removal.
    You might consider downloading and running ClamXav first and see if it can't do better than Sophos.
    All that being said, you can always remove the contents of the Trash using the terminal. Usually as administrator, or in some cases as root (su). Unless you are very familiar with the terminal I do not suggest doing this without some study.

  • Can not delete contacts. Edit option is not!

    Can not delete contacts. Edit option is not! help me please..,
    thank you.

    This fixed the problem:
    Barney-15E Florida
    This solved my questionRe: Why is Contacts delete greyed out?     Sep 21, 2012 4:52 AM    (in response to Reefberry) 
    First make backup of the Contacts by going to the File menu, Export, Contacts Archive.
    Then, delete this file:
    ~/Library/Application Support/AddressBook/AddressBook-v22.abcddb
    That is an index database that gets recreated automatically. It appears to be corrupt.
    The ~ means your user home folder. You can get to the user Library by holding down the Option key and selecting Library from the Go menu in Finder.

  • I can not delete my history and adding new bookmarks. Upgrading to later Firefox versions and/or re-installing didn't help. The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.

    I can not delete my history and adding new bookmarks.
    Upgrading to later Firefox versions and/or re-installing didn't rectify it either.
    The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.
    Also, I have noticed that every once in awhile you can not close tabs you've opened, either by pushing on the X button and/or clicking on the mouse to close it. Although closing the window and opening it again (without closing the Firefox application) seemed to rectify the problem in the short term, it's becoming quite annoying.
    == This happened ==
    Every time Firefox opened
    == the Firefox is being used

    I think I have a solution.
    First, download the add-on SQManager. This should be included with FireFox, it is really good.
    Look for the file '''moz_hosts''' in the folder '''places.sqlite'''.
    Don't delete the file, just delete the information in the file. My file has over 3600 websites, which go back years!! I did not know they were there, but I was frustrated about not being able to get rid of them. They popped up every time I used the address bar. Clearing my history would not get rid of them.
    This is where they are stored!! I found that by deleting the pesky web site from '''moz_hosts''', it does not appear in my address bar anymore!!!
    I think that if I just delete all the websites in moz_hosts....
    Wa-la...History Gone!!!
    As long as you don't delete the file, just empty it, FireFox won't know the difference. It will just keep adding websites to it until you empty it again.
    Why running "clear recent history" doesn't do this, I don't know. You are doing manually what "clear recent history" is not doing.
    Please tell me if you see any flaw in this.
    ''I think it's the solution we've all been looking for!''

  • Can not delete photos or albums sync from computer to iphone 4s

    I can not delete photos or albums that were sync from computer to iphone 4s. I tap edit but there is no delete icon. Help. This is my first iphone

    You delete them the same way you put them there, the sync process.
    Deselect the folder in itunes and sync.

  • I can not delete or copy new files to my Iomega external hard drive

    Hi,
    I can not delete or copy new files to my Iomega external hard drive. Opening hard drive folder I can see that I can not overwrite it. I have heard that I need to install some program for the external hard drive to operate properly in Mac.
    Please help what to install or there is some other option.
    Thnx

    I'm not the expert on this since I have never done it. It sounds like you may need a data rescue program like Data Rescue III. I believe you can download a demo and see if you can see the files. If you can, then you can buy the program and retrieve the files. I don't know if Disk Utility can restore them--I think they have to be visible but this is not something I have ever had to do.
    In the meantime, don't do anything with the drive--you don't want to overwrite any files. Hopefully all or most of the files are still there and you will be able to retrieve them. The less the drive is used, the better your chances are of retrieving the data.
    Forgive me for not realizing that there were files on the drive that you wanted to save. Upon re-reading your question, I now see that there were. I should have known to warn you, and my bad that I didn't.
    Good luck!

  • HT201302 i can not delete photos from photo library from my iPhone 4

    i can not delete photos from photo library and onother folder contain same photo in the photo library from my iPhone 4
    thnx

    Delete them the same way you put them there.  The sync process.  Deselectg the album in itunes and sync.
    Photo Album contains ALL synced photos and you can also view those exact same photos, not duplicates, from the albums.

  • Every time I sync my iPhone with iPhoto I end up getting duplicate photos on my iPhone. The other problem is that I can not delete the dups on my iPhone.   Does anyone have an answer to this problem?

    Every time I sync my iPhone with iPhoto I end up getting duplicate photos on my iPhone. The other problem is that I can not delete the dups on my iPhone.   Does anyone have an answer to this problem?

    Mike whether I create a folder within the Pictures Folder that iTunes uses to sync photographs or just copy them into the main folder the result is the same, I end up with Photo Library plus another album containing an identical set of pictures as contained in Photo Library.
    The User Manual for iOS5 states ...
    You can create, rename, and delete albums on iPhone to help you organize your photos and videos.
    Create a album: When viewing albums, tap Edit, then tap Add. Select photos to add to the new album, then tap Done. Note: Albums created on iPhone aren’t synced back to your computer.
    Rename an album Tap Edit, then select an album.
    Rearrange albums Tap Edit, then drag up or down.
    Delete an album Tap Edit, then tap the delete sign.
    Yes I can Add a new Album, but cannot delete an album already created. The delete sign does not appear.
    In iTunes the only folder that I can see listed is the man one into which iTunes stores pictures, which I have named iPhone Photos.
    When I look on my PC this iPhone Photos folder contains another folder named iPod Photo Cache and a multitude of folders created by iTunes, the named F00, F01,F02 etc etc. and a Photo Database file.
    Now whether I create a seperate folder within iPhone Photos to store my favourite photos in, or just copy them all into the iPhone Photos folder without being encased within another folder, or create a folder inside the iPod Photo Cache folder the result is the same ...
    I end up with Photo Library plus another album containing an identical set of pictures as contained in Photo Library.
    I am going around in ever decreasing circles here and getting nowhere fast!! 

Maybe you are looking for

  • Itunes wont chnage from US Store to UK Store

    Music store is driving me crazy. When I connect to Music Store I am diverted to the US Store. I log in and am informed that I only have access to the UK store and it starts to automatically divert but then US Store appears again. I click on the icon

  • Why can I not use any map website because I am prompted to download Maps Galaxy for Firefox which I do not want & am provided no opt out option?

    I have attempted to use Google , MapQuest and Yahoo map and directions and cannot view the resulting directions because a message appears on the screen requiring me to download MapsGalaxy for Firefox toolbar. I am happy with what I can do currently w

  • How to color a cell based on whether its filled or not. If filled color it

    Hello All,                     I am into BI 7.01. I have a requirement to colour a cell(Characteristics) based on its value. How do I do that. I know it has to be handled using the Module in web template 7.01 version. Please guide me. Thanks & regard

  • Backup failed by DB13 & brtools both

    Hi gurus, I am trying to full database Backup Online, yesterday I was started it by using brtools but it was stoped after complition of 67% Error is : BR0801I BRCONNECT 7.00 (18) PID=5216 BR0312E Database instance ECD shutdown during online backup BR

  • RDI format problem

    Hi Folks! I have a small problem in RDI format printing. Does anybody know if RDI format recognises the displayable/non-displayable characters? I mean characters like $, EURO symbol, ~, etc. When I am generating the output the special characters are