Tearing down a published project
Sometimes, you no longer want a project published to a particualr domain or subdomain. To accomplish this, you can teardown a project through the Surge CLI. This will effectively take the project offline.
First, ensure that you’re using the latest version of Surge:
npm install --global surge
surge teardown, specifying the domain you no longer want to use. For example, if your unwanted domain was
vancouver.surge.sh, you would run:
surge teardown vancouver.surge.sh
If no domain is passed in, Surge will check for a CNAME file to use. Otherwise, it will promt you the domain you would like to teardown.
If you’d like to deploy your project to a new domain instead, you can also learn more about adding a custom domain.