delete
Usage
The rapd clusterclass
command is used to delete Clusterclass resources.
rapd clusterclass delete (Name...) [flags]
Flags
These are the flags available in the rapd clusterclass delete
command:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--file | -f | No | Specify a file or directory | |
--label | -l | No | Delete by matching labels | |
--all | foreground | No | Delete all objects under a specific resource | |
--cascade | -A | No | Select deletion strategy | |
--ignore-not-found | No | Ignore errors when the resource does not exist (returns exit code 0) | ||
--wait | true | No | Wait for resource deletion | |
--timeout | No | Set wait timeout | ||
--approved | No | Automatically confirm the deletion without requiring [yes/no] input |
Deletion Strategies (cascade)
- foreground: Deletes the specified resource and waits for all child resources to be deleted
- background: Deletes the specified resource without waiting for child resources to be deleted
- orphan: Does not automatically delete child resources when the parent resource is deleted
Examples
Here are some examples of using the rapd clusterclass delete
command:
- Delete a resource by specifying its name:
rapd clusterclass delete gcp
- Delete a resource by specifying a file:
rapd clusterclass delete -f filename.yaml
Output
After successfully executing the command, the output will look similar to the following:
Deleting Clusterclass gcpDeleting Clusterclass awsDelete gcp successDelete aws success
Delete Clusterclass, 2 success, 0 failed