Skip to main content

7. Teardown

caution

The Ash Console is currently in alpha and not production-ready. It is under active development and subject to breaking changes.

This section will guide you through the steps to delete the entities created in the previous sections.

Delete the resources

Command
for i in {1..5}; do
ash console resource delete -y local-node-0$i
done
# If you created a Subnet
ash console resource delete -y ash-subnet
# If you created a Blockscout
ash console resource delete -y ash-blockscout

Wait for the resources to be deleted (removed from the list):

Command
ash console resource list
Output
Resources of project 'devnet-guide':
+---------------+-------------+------+-----------------+------+------------+--------+-------------------+
| Resource name | Resource ID | Type | Cloud region ID | Size | Created at | Status | Resource specific |
+===============+=============+======+=================+======+============+========+===================+
+---------------+-------------+------+-----------------+------+------------+--------+-------------------+

Delete the cloud region

Command
ash console region remove -y aws/us-east-1

Wait for the cloud region to be removed (removed from the list):

Command
ash console region list
Output
Cloud regions of project 'devnet-guide':
+--------------+-----------+-----------------------+------------+--------+
| Cloud region | Region ID | Cloud creds secret ID | Created at | Status |
+==============+===========+=======================+============+========+
+--------------+-----------+-----------------------+------------+--------+

Delete the nodeId secrets

Command
for i in {1..5}; do
ash console secret delete -y local-node-id-0$i
done
# If you created a Subnet
ash console secret delete -y ewoq-key
note

You can also keep the nodeId secrets for later use as they will be used for all devnet (local) networks.

Delete the project

Command
ash console project delete -y devnet-guide