Skip to content

Commit

Permalink
updating docs to drop using --wipe flag (#440)
Browse files Browse the repository at this point in the history
* updating docs to drop using `--wipe` flag

* use <NODE_NAME> instead of ${HOST}

* Apply PR comments

* apply PR comments

---------

Co-authored-by: Muhamad Awad <[email protected]>
  • Loading branch information
muhamadazmy and muhamadazmy authored Aug 1, 2024
1 parent 480e8fc commit fd38404
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/develop/local_dev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ import clsx from "clsx";
<details>
<summary> Wiping Restate </summary>

To start the Restate Server from a clean slate and wipe ongoing invocations and K/V state:
To start the Restate Server from a clean slate, stop the server and then delete the data directory:

```shell
restate-server --wipe all
rm -rf <BASE_DIR>/<NODE_NAME>
```

</details>
Expand All @@ -146,7 +146,7 @@ import clsx from "clsx";

[Cancel](/operate/invocation#cancelling-invocations) a single invocation or a batch of invocations.
Use `--kill` to [kill](/operate/invocation#killing-invocations) the invocation.
To remove all invocations, restart the server with `--wipe all`.
To remove all invocations, stop the server then do `rm -rf <BASE_DIR>/<NODE_NAME>`, which will effectively delete all state/data of the Restate server.

```shell
restate invocation cancel <INVOCATION_ID>
Expand All @@ -167,7 +167,7 @@ import clsx from "clsx";
<CH.Scrollycoding className={clsx("single-item", "short-code")}>

Clear the K/V state of a Virtual Object or Workflows.
To clear all state, restart the server with `--wipe all`.
To clear all state, stop the server then do `rm -rf <BASE_DIR>/<NODE_NAME>`, which will effectively delete all state/data of the Restate server.

```shell
restate kv clear <OBJECT_OR_WORKFLOW_NAME>
Expand Down

0 comments on commit fd38404

Please sign in to comment.