Skip to content

Commit

Permalink
Update docs to reference wp-env destroy (#22643)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen authored May 26, 2020
1 parent 7e4b0d0 commit 55b8f7e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,14 @@ $ wp-env start

### 6. Nuke everything and start again 🔥

When all else fails, you can try forcibly removing all of the underlying Docker containers and volumes, the underlying WordPress directory, and starting again from scratch.
When all else fails, you can use `wp-env destroy` to forcibly remove all of the underlying Docker containers and volumes. This will allow you to start from scratch.

To nuke everything:

**⚠️ WARNING: This will permanently delete any posts, pages, media, etc. in the local WordPress installation.**

```sh
$ docker rm -f $(docker ps -aq)
$ docker volume rm -f $(docker volume ls -q)
$ rm -rf "../$(basename $(pwd))-wordpress"
$ wp-env destroy
$ wp-env start
```

Expand Down

0 comments on commit 55b8f7e

Please sign in to comment.