3. Teardown
caution
The Ash Console is currently in beta 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
Wait for the resources to be deleted (removed from the list):
Command
ash console resource list
Output
Resources of project 'ash-devnet':
+---------------+-------------+------+-----------------+------+------------+--------+-------------------+
| Resource name | Resource ID | Type | Cloud region ID | Size | Created at | Status | Resource specific |
+===============+=============+======+=================+======+============+========+===================+
+---------------+-------------+------+-----------------+------+------------+--------+-------------------+
Delete the cloud region
Command
ash console region remove -y "$CLOUD_PROVIDER/$CLOUD_REGION"
Wait for the cloud region to be removed (removed from the list):
Command
ash console region list
Output
Cloud regions of project 'ash-devnet':
+--------------+-----------+-----------------------+------------+--------+
| 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 ash-devnet