nb portal destroy

Xóa bản ghi Portal và thư mục triển khai

Cách dùng

nb portal destroy <portal> [flags]

Tham số

Tham sốKiểuMô tả
<portal>stringPortal name or slug.
--env, -estringCLI env name. If omitted, the current env is used.
--yes, -ybooleanSkip confirmation prompts.
--forcebooleanIgnore missing Portal records or deployment directories.
--delete-dev-path, -DbooleanDelete the Portal development directory in addition to the deployed Portal.

Ví dụ

nb portal destroy customer --yes
nb portal destroy customer --delete-dev-path --yes
nb portal destroy customer --env dev --yes
nb portal destroy customer --force --yes

Ghi chú

This command deletes the remote Portal record and deployed files. The development directory is retained by default; pass --delete-dev-path to delete it as well. In non-interactive mode, pass --yes. Use --force to ignore missing records or deployment files.

Lệnh liên quan