Removing a user and subuser
Removing a user removes both the user and subuser from the system. A subuser can also be removed separately.
About this task
Remove a user only when wanting to remove both a subuser and subuser from the system.
When you remove a subuser, you are removing access to the Swift interface but the user remains in the system.
Removing a user
Procedure
Remove a user and subuser from the system, by using the user rm
command with the user ID.
radosgw-admin user rm --uid=USER_ID [--purge-keys] [--purge-data]
For
example,
[ceph: root@host01 /]# radosgw-admin user rm --uid=johndoe --purge-data
The following command options are available:
- --purge-data
- The --purge-data option purges all data associated with the user ID.
- --purge-keys
- The --purge-keys option purges all keys associated with the user ID.
Removing a subuser
Procedure
Remove a subuser from the system, by using the subuser rm command with
the subuser name.
radosgw-admin subuser rm --subuser=SUBUSER_ID:swift --purge-keys
Note: Use the --purge-keys option to purge all subuser keys.
For
example,
[root@host01 /]# radosgw-admin subuser rm --subuser=johndoe:swift --purge-keys