Skip to content

Issue: Cannot Re-Create Work Pool — Prefect Says It Already Exists #19725

@bonlv2000

Description

@bonlv2000

Bug summary

Hi,

I deleted a work pool, but when I try to create a new one with the same name, I get this error:

"A work pool with this name already exists."

The pool does not show up in the UI or in prefect work-pool ls, so it seems like it wasn't fully removed.

Is there any cache or backend state that Prefect keeps that I need to clear?
How can I force-delete a work pool?

Thanks!

EVD:

Image Image Image

Version info

prefect version
/home/azureuser/.local/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'default' attribute with value 'UTC' was provided to the `Field()` function, which has no effect in the context it was used. 'default' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
  warnings.warn(
Version:              3.4.22
API version:          0.8.4
Python version:       3.10.12
Git commit:           6a6d114f
Built:                Fri, Oct 03, 2025 06:15 PM
OS/Arch:              linux/x86_64
Profile:              default
Server type:          server
Pydantic version:     2.12.5
Server:
  Database:           sqlite
  SQLite version:     3.37.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions