delete
Usage
The rapd target
command is used to delete Target resources.
rapd target delete (Name...) [flags]
Flags
These are the flags available in the rapd target delete
command:
Flag Name | Short Name | Default Value | Required | Description |
---|---|---|---|---|
--file | -f | No | Specify a file or directory | |
--label | -l | No | Delete resources matching the specified label | |
--all | foreground | No | Delete all objects under the specified resource | |
--cascade | -A | No | Choose the deletion strategy | |
--ignore-not-found | No | Ignore errors when the resource does not exist (returns exit code 0) | ||
--wait | true | No | Wait for the resource deletion to complete | |
--timeout | No | Wait for the specified timeout period | ||
--approved | No | Automatically approve resource deletion without confirmation (yes/no) |
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: Deletes the parent resource without automatically deleting its child resources.
Examples
Here are some examples of using the rapd target delete
command:
- Delete a resource by name:
rapd target delete bind-gcp -e default-env
- Delete a resource specified by a file:
rapd target delete -f filename.yaml
Output
After successfully executing the command, the output will look similar to the following:
Deleting Target bind-gcpDeleting Target bind-awsDelete bind-gcp successDelete bind-aws success
Delete Target, 2 success, failed