VMWARE virtual server
Microsoft Windows Server 2003 Enterprise Edition SP2
Intel Xeon CPU
E7330 @ 2.40 GHz
2.00 GB of RAM
.Net Framework 2. SP2
.Net Framework 3. SP2
.Net Framework 3.5 SP1
WSS 3.0 Service Pack 3.0
MOSS 2007 Service Pack 2.0
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