Skip to content

delete

Usage

The rapd cloud command is used to delete Cloud resources.

Terminal window
rapd cloud delete (Name...) [flags]

Flags

These are the flags available in the rapd cloud delete command:

Flag NameShort NameDefault ValueRequiredDescription
--file-fNoSpecify a file or directory
--label-lNoDelete by matching labels
--allforegroundNoDelete all objects under a specific resource
--cascade-ANoSelect deletion strategy
--ignore-not-foundNoIgnore errors when the resource does not exist (returns exit code 0)
--waittrueNoWait for resource deletion
--timeoutNoSet wait timeout
--approvedNoAutomatically 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 cloud delete command:

  1. Delete a resource by specifying its name:
Terminal window
rapd cloud delete gcp-credential
  1. Delete a resource by specifying a file:
Terminal window
rapd cloud delete -f filename.yaml

Output

After successfully executing the command, the output will look similar to the following:

Terminal window
Deleting Cloud gcp-credential
Deleting Cloud aws-credential
Delete gcp-credential success
Delete aws-credential success
Delete Cloud, 2 success, 0 failed