+ 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.

If this helps, Please mark it as best answer.