> For the complete documentation index, see [llms.txt](https://docs.p0.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p0.dev/p0-cli/p0-commands-and-usage/p0-logout.md).

# p0 logout

Remove all P0 CLI credentials, configuration files, and cached data from your local environment.

### **Overview** <a href="#overview" id="overview"></a>

The `p0 logout` command removes all P0 CLI credentials, configuration files, and cached data from your local environment, so no sensitive information remains after you finish using the CLI.

When you run `p0 logout`, the CLI will:

* Delete your saved identity file (authentication token)
* Remove all locally stored P0 configuration files
* Clean up any CLI caches related to your P0 session

### Usage <a href="#usage" id="usage"></a>

```shell
p0 logout
```

No additional arguments are required. After running this command, you will need to log in again with `p0 login` before using other P0 CLI commands.

### **What Files Are Removed** <a href="#what-files-are-removed" id="what-files-are-removed"></a>

| File Location         | Purpose                       |
| --------------------- | ----------------------------- |
| `~/.p0/identity.json` | Authentication token and info |
| `~/.p0/config.json`   | CLI configuration             |
| CLI cache files       | Session/cache data            |

If you use multiple organizations or custom configuration paths, `p0 logout` will remove the relevant files for your current context.

### Notes <a href="#notes" id="notes"></a>

* Use `p0 logout` on shared systems, CI environments, or when rotating credentials to ensure proper cleanup.
* Attempting to use privileged CLI commands after logout requires you to authenticate again with `p0 login`.
