2

I used the blog template when creating a new subsite within mysites and in the process an associated list called Photos got created.

While this has worked well, I've noticed that when I delete a blog post that contained some images (filetype is .png), the images that were part of the blog post content remain behind.

Is there a setting that results in something like "delete any images for the blog post when the blog item is deleted"?

This is Sharepoint 2010 Server Enterprise Edition SP1.

1

This is the OOTB functionality, probably based on the thought that you might use the same pictures in more than one place, even in other places than a blog post.

If that is the case, and SharePoint just deletes the image on post deletion, you would get corrupt image links in all other places referencing that particular image file.

You could write an ItemDeleting Event Receiver that parses the body of the blog post for image links and then removes them from their resp. libraries before the blog post is deleted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.