Deleting a User
You can delete a user in your account that no longer needs access to your resources.
You need to detach any resource associated with the user before you can delete the user.
Deleting a User Using Cockpit v2
Before you begin:
|
-
Click inside the EIM Users dashboard to make checkboxes appear.
-
Check the box of the user you want to delete.
Multiselection is available.
The user is selected and an action appears.
-
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The user is deleted.
Deleting a User Using OSC CLI
The DeleteUser command deletes a specified EIM user. The EIM user must not belong to any group, nor have any key or linked policy.
$ osc-cli api DeleteUser --profile "default" \
--UserName "example-user"
This command contains the following attributes that you need to specify:
-
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
UserName
: The name of the EIM user you want to delete.
The DeleteUser command returns the following elements:
-
ResponseContext
: Information about the context of the response.
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting a User Using AWS CLI
Before you begin:
|
To delete a user, use the delete-user command following this syntax:
$ aws iam delete-user \
--profile YOUR_PROFILE \
--user-name USER_NAME \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
user-name
: The name of the user you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified user is deleted from your account.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.