purge
Erase all messages from all known task queues.
Warning:
There's no undo operation for this command.
def purge(
ctx: click.Context,
force: boolean = False,
queues: list = null,
exclude_queues: list = null,
**kwargs: dict
) - > null
Erase all messages from all known task queues. Warning: There's no undo operation for this command.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | click.Context | The Click context object containing the Celery application instance and styling utilities. |
| force | boolean = False | If true, bypasses the interactive confirmation prompt before deleting messages. |
| queues | list = null | A list of specific queue names to target for message deletion; defaults to all known queues if not provided. |
| exclude_queues | list = null | A list of queue names that should be skipped and protected from the purge operation. |
| **kwargs | dict | Additional keyword arguments passed from the command line interface. |
Returns
| Type | Description |
|---|---|
null | This function does not return a value; it outputs the purge results to the console. |