.. _DELETE Service ostor-usage:

DELETE Service ostor-usage
--------------------------

Description
~~~~~~~~~~~

Deletes the statistics object specified by name.

Requests
~~~~~~~~

Syntax
^^^^^^

::

    DELETE /?ostor-users&obj=<object_name> HTTP/1.1
    Host: s3.amazonaws.com
    Date: <date>
    Authorization: <authorization_string>

Parameters
^^^^^^^^^^

+------------------+-------------------------------------------------------+----------+
| Parameter        | Description                                           | Required |
+==================+=======================================================+==========+
| ``obj``          | Statistics object name.                               | No       |
|                  |                                                       |          |
|                  | Type: string.                                         |          |
|                  |                                                       |          |
|                  | Default value: none.                                  |          |
+------------------+-------------------------------------------------------+----------+

Headers
^^^^^^^

This implementation uses only common request headers.

Responses
~~~~~~~~~

Headers
^^^^^^^

This implementation uses only common response headers.

Body
^^^^

Empty.

.. note:: If the request is successful, ``Status204NoContent`` is returned.

Examples
~~~~~~~~

Sample Request
^^^^^^^^^^^^^^

The following request deletes statistics object with name ``s3-usage-8000000000000003-2016-04-11T13:33:55.000Z-30``.

::

    DELETE /?ostor-usage&obj=s3-usage-8000000000000003-2016-04-11T13:12:53.000Z-30 /HTTP1.1
    Date : Mon, 11 Apr 2016 17:52:05 GMT+3:00
    Host : ostor-test-1
    Authorization : authorization string

Sample Response
^^^^^^^^^^^^^^^

::

    HTTP/1.1 204 No Content
    Date : Mon, 11 Apr 2016 14:52:05 GMT
    x-amz-req-time-micros : 4717
    Connection : keep-alive
    x-amz-request-id : 80000000000000030006b6bf31262d2c
    Server : nginx/1.8.1

