<@ULVA73B9P> is there a way to disable all deploym...
# ask-marvin
j
@Marvin is there a way to disable all deployments in a flow from the UI?
m
thought for 335.8 seconds
Short answer: not with a single click today. There isn’t a bulk “disable all deployments for this flow” control in the Prefect 3 UI. Here are the practical options from the UI: - Pause schedules per deployment (UI) - Open a deployment > Schedules section > pause or delete each schedule. This stops new scheduled runs for that deployment. - Docs: Creating &amp; managing deployments - Pause the work pool (UI) - Work Pools > select your pool > Pause. This prevents any new flow runs from starting for all deployments targeting that pool (not just this flow). - Docs: Work pool reference If you’re open to the CLI, you can script a “bulk pause” by iterating schedules for each deployment of a flow:
Copy code
# list deployments for a given flow
prefect deployment ls --flow-name "my_flow"

# for each deployment, list schedules and pause them (replace values accordingly)
prefect deployment schedule ls "my-flow/my-deployment"
prefect deployment schedule pause "my-flow/my-deployment" <SCHEDULE_ID>
CLI help: - prefect work-pool -
prefect deployment schedule
supports
ls
,
pause
,
resume
,
clear
(we verified via
--help
) Would you like to stop just scheduled runs, or block all new runs entirely? If it’s the latter and your deployments share a pool, pausing the pool in the UI is the quickest single action.