Skip to content

delete

Usage

The rapd app command is used to delete Application resources.

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

Flags

These are the flags available in the rapd app 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 (return exit code 0)
--waittrueNoWait for resource deletion
--timeoutNoSet wait timeout
--approvedNoAutomatically confirm the deletion without requiring [yes/no] input

刪除策略(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 app delete command:

  1. Delete a resource by specifying its name:
Terminal window
rapd app delete myApplication1 -e default-env
  1. Delete a resource by specifying a file:
Terminal window
rapd app delete -f filename.yaml

Output

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

Terminal window
Deleting Application app1
Deleting Application app2
Delete app1 success
Delete app1 success
Delete Application, 2 success, failed