← 返回命令列表

Linux command

pulumi-destroy 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Destroy all resources

pulumi destroy

Destroy with auto-approval

pulumi destroy --yes

Destroy specific stack

pulumi destroy -s [stack]

Preview destruction

pulumi destroy --preview-only

Destroy specific targets

pulumi destroy --target [urn]

说明

pulumi destroy deletes all resources in a stack. Removes cloud infrastructure managed by Pulumi. Always preview changes before destruction in production environments.

参数

-s, --stack _name_
Target stack.
-y, --yes
Skip confirmation.
--preview-only
Preview without executing.
--target _urn_
Destroy specific resources.
-p, --parallel _n_
Parallelism level.
--refresh
Refresh state before destroy.

FAQ

What is the pulumi-destroy command used for?

pulumi destroy deletes all resources in a stack. Removes cloud infrastructure managed by Pulumi. Always preview changes before destruction in production environments.

How do I run a basic pulumi-destroy example?

Run `pulumi destroy` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s, --stack _name_ do in pulumi-destroy?

Target stack.