Deleting Document Library Folders with Content Types is Dangerous

September 19th, 2007 § Leave a Comment

Well, only in certain situations. I was pruning a couple of Document Libraries of empty folders today and noticed either an anomaly or feature that should make you cringe. I opened the Document Library in Explorer View so I could select multiple folders to check the size of them via right-click > properties. It showed 0kb so I thought cool, there’s nothing in here, I can delete it, so I did. But wait!

Not so fast if you’re using Content Types with required/forced metadata. This forces documents to be checked-out by default until the user manually adds in the metadata and checks the file back in.  The best part is if they don’t feel like filling out these fields and they leave the files checked-out as a result, the world will never know it exists. Not even the super-SharePoint-admin!

So after I deleted a bunch of supposedly 0kb folders, I went to check the Recycle Bin just for kicks and lo and behold… one of the folders I had just deleted shows to be containing 50MB+ worth of stuff. All invisible because the end-user never bothered to check the file in. Bollocks!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Deleting Document Library Folders with Content Types is Dangerous at The SharePoint Swiss Army Knife.

meta

Follow

Get every new post delivered to your Inbox.

Join 584 other followers