Commit d82aee9f844 for woocommerce

commit d82aee9f8442b716ca0ec2335363e3d684139bae
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date:   Tue Jun 23 16:16:06 2026 +0300

    Add --force to env:restart wp-env destroy (#65906)

    Skips the interactive confirmation prompt so the script runs unattended.

diff --git a/plugins/woocommerce/changelog/env-restart-force-destroy b/plugins/woocommerce/changelog/env-restart-force-destroy
new file mode 100644
index 00000000000..c48a7a5de87
--- /dev/null
+++ b/plugins/woocommerce/changelog/env-restart-force-destroy
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Add --force to the env:restart script so wp-env destroy skips the interactive confirmation prompt.
diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index 56e6ff8019c..a2d479d8862 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -30,7 +30,7 @@
 		"env:dev": "pnpm wp-env start --update",
 		"env:down": "pnpm wp-env stop",
 		"env:performance-init": "./tests/performance/bin/init-environment.sh",
-		"env:restart": "pnpm wp-env destroy && pnpm wp-env start --update",
+		"env:restart": "pnpm wp-env destroy --force && pnpm wp-env start --update",
 		"env:start": "pnpm wp-env start",
 		"env:start:blocks": "pnpm wp-env start && bash ./tests/e2e/bin/blocks/test-env-setup.sh && pnpm playwright install chromium",
 		"env:stop": "pnpm wp-env stop",