Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Destroy Cloud Infrastructure #495

Open
machineghost opened this issue Jul 24, 2022 · 3 comments
Open

Cannot Destroy Cloud Infrastructure #495

machineghost opened this issue Jul 24, 2022 · 3 comments

Comments

@machineghost
Copy link

I tried to follow the steps on https://www.webiny.com/docs/infrastructure/basics/destroy-cloud-infrastructure, but the very first command fails with the following errors ...

In the parent folder:

$ yarn webiny destroy api --env dev
yarn run v1.22.5
warning package.json: No license field
$ /home/me/main-project/node_modules/.bin/webiny destroy api --env dev
✘ Plugin "destroy" was not found!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

In the project folder:

$ yarn webiny destroy api --env dev
webiny error: Could not detect project application in given directory (/home/me/main-project/webiny/webiny-experiment/api/api).

But, it should be possible to delete the stuff Webiny creates :(

@adrians5j
Copy link
Member

Hey, it should be apps/api, not api.

Recently we did some updates on docs, and it looks like the article you linked wasn't updated.

We'll fix that.

@machineghost
Copy link
Author

machineghost commented Jul 25, 2022

EDITED

I was running it in the parent folder again. When I ran it in the sub-folder, it worked! Thanks.

@Pavel910
Copy link
Collaborator

@machineghost you actually should be running everything from the root project folder. Just reference your apps with a proper folder path, like Adrian mentioned:

// From the project root run this:
yarn webiny destroy apps/api --env=dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants