Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Deleted web parts getting listed

0 views
Skip to first unread message

Ajit

unread,
Nov 8, 2009, 3:56:01 PM11/8/09
to
Hi,

We are using SharePoint server 2007 in Windows 2008 Server 64 bit.
I am trying to delete the 'unnecessary' web parts from the gallery. We have
a console application which creates an SPSite object pointing
to the root site, calls

rootSite.GetCatalog(SPListTemplateType.WebPartCatalog);

to return the SPList of web parts in gallery and calls the delete on
those individual web parts. The program runs fine, I can see that the deleted
web parts are no longer listed in the Add Web Parts --Web Page Dialog. But
when I click the Advanced Web Part Gallery and Options, "Add Web Part" pane
come up. In this pane there are three web part collections: Closed Web Parts,
Home Gallery and Server Gallery. Interesting thing is all the web parts,
including the deleted one can be added from the Home Gallery. Why is it so ?

I did a reset of IIS after running the program.
Is there anything that I am missing.

With Regards
Ajit

0 new messages