# stop_publish

Source: https://modulify.ai/docs/mcp/publishing/stop-publish

Stops a publish that is still running, so nothing from it reaches the live site.

- Title: Stop a publish that is running
- Scope: `publish:write`
- Access: Destructive

The build is abandoned, its machines are torn down and the deployment is recorded as `cancelled`. Whatever was already published stays up untouched. Leave out `deploymentId` to stop whatever is running now.

A publish whose status has reached `deploying` is switching traffic over and can no longer be stopped. It is refused with `This publish is already going live and can no longer be stopped!` rather than half-canceled, and with nothing running the call answers `There is no publish running to stop!` See [Stopping a publish](https://modulify.ai/docs/publish/publish-a-site#stopping-a-publish).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `deploymentId` | string | No | A specific publish to stop. Leave it out for whatever is running now. |