function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Iago SilvaIago Silva 

Error in community deploy

I'm trying to update an already created community in a scratch org using Salesforce DX, but I'm getting this error:
You cannot delete a site from Experience Cloud, but you can disable it through the administration settings in the Experience Workspaces.

But I'm not trying to delete the community, just update it.

Any ideia?
Thanks in advance.

 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Iago,

You can delete any site that isn’t published. If the site is published, you must first unpublish it before you can delete it. See Taking a Site Offline.

Refer the below help article.
https://help.salesforce.com/s/articleView?id=sf.siteforce_website_delete.htm&type=5

If this helps, Please mark it as best answer.

Thanks!!