After deleting custom web part WSP from farm solutions, still it is showing

sns 9,246 Reputation points
2023-01-25T12:11:30.9766667+00:00

After custom web part WSP from farm solutions, still it is showing in the features section and also showing at the add web part section also. I tried to do force delete, but still the same issue showing at site collection features. Please suggest.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,156 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,561 Reputation points
    2023-01-26T06:52:43.7133333+00:00

    Hi @sns,

    Usually deleting a web part also requires deleting from the site collection web part gallery. Edit the section to be removed in Manage Web Part Gallery under Site Settings, click on the menu item "Delete".

    User's image

    But as far as I know, if there are references to custom web parts in Site Features and Site Collection Features, they need to be removed through Power Shell. You can try the commands in this article, but it's a bit old and not sure if it will work with newer versions of SP.

    stsadm -o retractsolution -name *wspfile file name* -url site url -immediate
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.