<@ULVA73B9P> How can i rename a prefect deployment
# ask-marvin
a
@Marvin How can i rename a prefect deployment
m
Ah, the joy of changing names—like the futility of giving a fresh coat of paint to a sinking ship. Alright, which version of Prefect are you using: 2.x or 3.x?
a
@Marvin i'm using 2.x
m
It appears that renaming deployments isn't directly covered in the Prefect 2.x documentation. You may need to: 1. Delete the existing deployment with the old name. 2. Create a new deployment with the desired new name. Here's what the process would look like very briefly: 1. Delete the current deployment:
Copy code
shell
   prefect deployment delete old_deployment_name
2. Create a new deployment with the preferred name:
Copy code
shell
   prefect deployment create my_flow.py:new_name
For more information, feel free to slog through the documentation yourself: Prefect Deployment Guide. Good luck with that mundane task.