Deleting S3 users and buckets via REST API

You can delete an existing user by sending a DELETE request to the ostor-users service along with the user email address:

# s3_curl DELETE "http://s3.example.com/?ostor-users&emailAddress=user@example.com"

Users who own buckets cannot be removed until their buckets are deleted. To get a list of user’s buckets, send a GET request to the ostor-buckets service along with the user email address:

# s3_curl GET "http://s3.example.com/?ostor-buckets&emailAddress=user@example.com"
{
"Buckets": [
    {
        "size": {
            "current": 12288,
            "h_integral": 7360512,
            "hmax": 12288,
            "last_ts": 424241
        },
        "epoch": 0,
        "owner_id": "ba7eba06129464c5",
        "name": "bucketname",
        "creation_date": "2018-05-25T17:12:00.000Z"
    }]
 }

You can then delete buckets by name:

# s3_curl DELETE "http://s3.example.com/bucketname"