I've created a Sandbox to begin the unfortunately tedious process of migrating to Lightning Knowledge. To do this, Salesforce requires that we merge all existing Knowledge Articles into a single Article Type, and delete all other Article Types. This must be done prior to even being allowed to enable Lightning Knowledge:

enter image description here

Our company were very early adopters of Lightning Communities, and we originally worked with an Implementation Partner who built a lot of custom lightning components for us to drive content on our Community. Unfortunately, most of that content was driven by Knowledge Articles.

I created a new Global Article type for the transition, moved all the articles to that type, and began modifications to 10-12 different controller classes that referenced those types. One by one I managed to delete 8 out of 9 of our old article types after commenting out the related controllers.

I cannot however delete this last one. After commenting out / deleting all of the references to the article type, I'm still left with the following two errors when I try to delete:

The object you're trying to delete is in use on site SITE_NAME_C, which is published.

The object you're trying to delete is in use on site SITE_NAME_C, which is under development.

I've searched and only found one other related post, and that user never got an answer: Cannot delete lightning component

I've been pouring over the Community for hours trying to find any reference to this article type, either in the default setup of the site, or in a component. I've actually started deleting groups of pages and trying again, but have since found nothing. Interestingly, even though there are two separate errors, they both refer to the same site - one of them says the site is Published and the other says its under development. The link to the site is the same on both errors, so its the same site.

This is completely blocking our ability to migrate to Lightning Knowledge, and, by extension, stopping us from migrating our Support teams over to Lightning. Can someone point out something I might be missing?

1 Answer 1


Got it! For whatever reason, deleting the components from the pages and then publishing the lightning community wasn't enough. I had to actually go into Site.com studio and delete records from there, and press publish there. Once I did that, I saw on the "items to be published" page it listed all of the changes I had been making in the Lightning Builder.

Once I republished through Site.com Studio I was able to delete the offending article type.

  • How does one access Site.com studio?
    – simplikios
    Commented Mar 10, 2023 at 9:20
  • @simplikios go to Setup > All Sites. Click on the "Workspaces" action next to your site, then go to the "Pages" tab. At the bottom of that tab you will see "Advanced Customizations" with a button to Go to Site.com Studio Commented Mar 13, 2023 at 17:01
  • Thank you for the response. I see "Advanced Customizations" with a link to "Force.com". There I see pages again, but no link to "Site.com Studio".
    – simplikios
    Commented Mar 14, 2023 at 13:45
  • @simplikios I'm not sure. It may have something to do with the age of your site, or the template you've selected - or something else entirely. The Site.com Studio link shows up there for me as I've described. Your best bet will probably be to contact Salesforce Support as they may have more specific information on why you don't see that option. Commented Mar 15, 2023 at 14:41
  • here is official documentation help.salesforce.com/s/articleView?id=000380366&type=1 even thou it's about templates, you can use it even in this case
    – jakub
    Commented Apr 20, 2023 at 7:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .