***

title: stop
slug: /reference/python/agents/web-service/stop
description: Stop the service and run cleanup tasks.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Stop the service and run any cleanup tasks. This is a placeholder for future
cleanup logic and currently performs no action.

## **Parameters**

None.

## **Returns**

`None`

## **Example**

```python {5}
from signalwire import WebService

web = WebService(port=8002, directories={"/audio": "./audio_files"})
# ... after server has been running ...
web.stop()
```