DeleteContainer
    • PDF

    DeleteContainer

    • PDF

    Article Summary

    Overview

    Deletes containers (buckets).

    Statement

    DELETE https://{endpoint}/swift/v1/{containerName}
    

    Request

    Request header

    Header nameDescription
    x-ncp-apigw-timestampThis is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-keyThis is the access key ID issued by the NCP portal or Sub Account.
    x-ncp-apigw-signature-v2Signature used to encrypt the body of the above example with the SecretKey that maps with the access key ID.
    The HMAC encryption algorithm is HMACSHA256.
    x-ncp-region_codeThe region code of where the bucket of the data to be migrated from another cloud to NAVER Cloud is located

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    ContainerName-string-Name of the container to delete

    Response

    Response header

    NameInTypeDescription
    DateheaderstringResponse time of the request (UTC)

    Examples

    Request examples (JSON)

    curl -X DELETE " https://archivestorage.apigw.ntruss.com/swift/v1/{containerName}" -H "accept: application/json" -H "x-ncp-region-code: {regionCode}"
    -H "x-ncp-iam-access-key: {AccessKey} " 
    -H "x-ncp-apigw-timestamp: {current timestamp}" 
    -H "x-ncp-apigw-signature-v2: {generated signature}"
    

    Response examples

    HTTP/1.1 204 No Content
    Connection: keep-alive
    Date: Wed, 12 Sep 2018 04:34:35 GMT
    Keep-alive: timeout=60
    

    Upon successful request, it returns the No Content (204) status code.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.