DELETE service ostor-accounts

Description

Deletes an account of a user specified by email or ID.

Requests

Syntax

DELETE /?ostor-accounts&emailAddress=<value>&accountName=<value> HTTP/1.1
Host: <host>
Date: <date>
Authorization: <authorization_string>
DELETE /?ostor-accounts&id=<value>&accountName=<value> HTTP/1.1
Host: <host>
Date: <date>
Authorization: <authorization_string>

Parameters

DELETE service ostor-accounts parameters

Parameter Description Required
emailAddress

User email address.

Type: string.

Default value: none.

No*

id

User ID.

Type: string.

Default value: none.

No*
accountName

Account name.

Type: string.

Default value: none.

Yes

* Only one of the required parameters can be set in a single request.

Headers

This implementation uses only common request headers.

Responses

Headers

This implementation uses only common response headers.

Body

Empty.

Errors

Returns Error Code 400 if more than one required parameter is set.

If an account is successfully deleted, Status204NoContent is returned.

Examples

Sample request

Deletes the account with the name account1 for the user with the email user1@email.com.

DELETE /?ostor-accounts&emailAddress=user1@email.com&accountName=account1 HTTP/1.1
Host: s3.example.com
Date: Wed, 24 Mar 2021 14:53:53 GMT
Authorization: <authorization_string>

Sample response

HTTP/1.1 204 No Content
Server: nginx
Content-Type: application/xml
Connection: keep-alive
Date: Wed, 24 Mar 2021 14:53:55 GMT
x-amz-req-time-micros: 47411
x-amz-request-id: 8000000000000016000060d75ec8e4dd