Delete Compute Cluster
Description
Delete the specified compute cluster. Once the compute cluster is deleted, it cannot be recovered, so please proceed with caution.
Syntax
IF EXISTS
: Optional keyword used to check if the compute cluster exists. If it exists, the delete operation is executed; if it does not exist, the delete operation is not executed and no error is reported.NAME
: Specifies the name of the compute resource to be deleted.FORCE
: Optional keyword used to force the deletion of the compute resource. If the FORCE keyword is not added, the compute cluster will be deleted after the current job is completed. If the FORCE keyword is added, the compute cluster will be deleted immediately without waiting for the current job to complete.
Example
- Delete the compute resource named
sample_vc
in the space:
- When deleting computing resources, first check if the computing resources exist. If they exist, delete them. If they do not exist, do not report an error:
Precautions
- Before performing a delete operation, ensure that there are no running jobs in the computing cluster to avoid data loss or task failure.
- When using the FORCE keyword to forcibly delete a computing cluster, ensure that no jobs are currently being executed. Otherwise, it may cause the running jobs to be interrupted or fail.