I've uploaded and deployed some spfx webparts through my App Catalog site.

Now these webparts are not useful anymore so I've deleted them from the App Catalog.

Then I've checked my sites and modified modern pages and I've seen that these webparts are still listed even if they were deleted and even if they are not listed in site contents page.

I've also waited and re-check after a week, but webparts are still listed when I open a page in edit mode.

Is there some step I'm missing?

| improve this question | | | | |
  • @Pepozzon, webparts won't get deleted automatically. There are two options: either delete them manually from every page or write a script that does it. – Denis Molodtsov Jan 2 at 15:41
  • 1
    @DenisMolodtsov thank you! I'm sorry, I did not explain myself well. I've already removed weparts from site pages, but when I click on "+" button I found them listed as webparts I can add to my page. Obviously when I click on a webpart I receive a rendering error on the page. – Pepozzo Jan 2 at 16:16
  • Check if those web parts are listed under "Site contents". If they are, try removing them from there and they should not be visible in web part picker again. – Damjan Tomic Jan 2 at 16:58
  • 2
    @DamjanTomic Hi Damjan! I've already checked and they're not listed in Site Contents. – Pepozzo Jan 2 at 17:01

Check if you have delete the SPFx web part from the recycle bin, both from the first stage and second stage recycle bin.

I suggest you follow the article below to uninstall(Remove) SPFx web part in SharePoint Online.

To uninstall (Remove) SPFx web part in SharePoint Online

| improve this answer | | | | |
  • Hi! I've followed that article before. I've checked recycle bins after your comment and I've found .sppkg files there so I've deleted these files. Now I still see webpart listed when I try to edit a page, but I'll check again later. – Pepozzo Jan 3 at 8:27
  • Did you check the second stage recycle bin? – LZ_MSFT Jan 3 at 9:13
  • Yes, I deleted sppkg files from the second stage recycle bin as well. However I keep seeing wepart listed when I modify a modern page. – Pepozzo Jan 3 at 10:17

Have you checked if the features for those webparts is still shown in the site/sitecollection features option? I've had some occasions where deleting the packages didn't delete the features for reasons unknown. Other times, the deletion took a lot of time (24h+)

| improve this answer | | | | |
  • Hi! Thanks for your suggestion. I don't have references to these webparts in site features and in sitecollection features. – Pepozzo Jan 3 at 11:34
  • Me too. Any PowerShell to get rid of this? – Ofer Gal Apr 29 at 23:54

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.