// Module included in the following assemblies:
//
// assembly-managing-users-oc.adoc
// assembly-managing-users-kube.adoc

[id='proc-deleting-users-cli-{context}']
= Deleting users using the command line

Users can be deleted using standard command-line tools.

.Prerequisites

* An address space must have been created.
* A user must have been created.

.Procedure

. List the current users:
+
[options="nowrap",subs="attributes"]
----
{cmdcli} get messagingusers
----

. Delete the desired user:
+
[options="nowrap",subs="attributes",subs="+quotes,attributes"]
----
{cmdcli} delete messaginguser _myspace.user1_
----

.Additional resources

* xref:_overview[Rest API Reference]
