---
title: logout
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical-com-2934.demos.haus/maas/docs/logout?format=md
---

*Submit*

# logout

Log out of a remote API, purging any stored credentials.

```
maas logout [-h] profile-name
```

#### Positional arguments

| Argument | Effect |
| --- | --- |
| profile-name | The name with which a remote server and its credentials are |
|  | referred to within this tool. |

#### Command-line options

| Option | Effect |
| --- | --- |
| -h, --help | show this help message and exit |

This will remove the given profile from your command-line client. You can re-create it by logging in again later.

---

[Previous

login](https://canonical-com-2934.demos.haus/maas/docs/login)
[Next

maas](https://canonical-com-2934.demos.haus/maas/docs/maas)

Last updated 1 year, 5 months ago. [Help improve this document in the forum](https://discourse.maas.io/t/logout/11407).
