POST /api/v1/tables/drop

Remove an existing table. Please note, this statement can only be performed if the configuration option cluster.allow_drop_table is set true.

Resource Information

Content-Type application/json

Parameters

table The name of the table to remove.
database (optional) The name of the database.

Example Request

    >> POST /api/v1/tables/drop HTTP/1.1
    >> Content-Type: application/json
    >> Content-Length: ...
    >>
    >> {
    >>   "table": "sensors"
    >> }

Example Response

    << HTTP/1.1 201 OK
    << Content-Type: application/json
    << Content-Length: ...