2021-03-31 16:15:24 +02:00
|
|
|
# Archive a stream
|
2019-06-22 08:22:32 +02:00
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/streams/{stream_id}:delete)}
|
2019-06-22 08:22:32 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
|
|
|
|
|
|
|
{generate_code_example(python)|/streams/{stream_id}:delete|example}
|
|
|
|
|
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-11 14:33:02 +02:00
|
|
|
{generate_code_example(curl)|/streams/{stream_id}:delete|example}
|
2019-06-22 08:22:32 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2019-06-22 08:22:32 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
**Note**: The following parameters are all URL query parameters.
|
2019-06-22 08:22:32 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/streams/{stream_id}:delete}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/streams/{stream_id}:delete|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON response for when the supplied stream does not exist:
|
|
|
|
|
|
|
|
{generate_code_example|/streams/{stream_id}:delete|fixture(400)}
|