Description

Use this command when you want to delete the particular object at the specific time or after that.
※The object is required to be uploaded in advance.

When you specify the date, you need to specify it by epoch format.
The epoch format can be changed by command as follows:

(for Linux)
▼Change to epoch format

date +%s -d "2015/5/8 02:23:00"

▼Change to local time zone

date -d @1431083880

Request URL

Swift API v1.0

POST /v1/zc_{account}​/​{container}​/{object}

Request Parameters

Parameter Value Style Description
X-Auth-Token User Token header
account tenant ID URI
container Container Name URI
object Object Name URI
X-Delete-After (Optional) int header Delete after an interval time you specified. (second)
X-Delete-At (Optional) int header Delete at the specifed date. (epoch format)

Request Json

This operation does not accept a request body.

Normal response code

202

Example

curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H 'X-Delete-After: 60' \
https://object-storage.tyo1.cloud.z.com/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container/file1
HTTP/1.1 202 Accepted
Content-Length: 76
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txfa410f9d0c344648b4f11-00554c1a45
Date: Fri, 08 May 2015 02:07:01 GMT

<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html>
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H 'X-Delete-At:1431083880' \
https://object-storage.tyo1.cloud.z.com/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container/file1
HTTP/1.1 202 Accepted
Content-Length: 76
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx49c605b5cd3c49e39e142-00554c1c8f
Date: Fri, 08 May 2015 02:16:47 GMT

<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html>