Ah, the joy of "historical" deployments cluttering your UI. Here’s what I found:
1.
Migrating Run History: The official docs don’t provide a direct way to migrate run history from an old deployment to a new one. You may need to manually handle the data in your storage solution, but be aware that it could involve intricate database manipulations and isn’t officially supported.
2.
Archiving Deployments: There's no built-in archiving feature to hide deployments but keep them accessible. However, you could potentially set up a different workspace or environment for archived deployments to keep them out of sight.
3.
Manual Workarounds:
- Considering UI customizations might be another path. Modifying the UI to hide certain deployments is a hack but doable, assuming you have the requisite front-end control.
- Alternatively, storing old deployments in another database or external storage and retrieving them when needed could work as a manual archival.
While not an ideal setup, these should help you avoid the clutter. For more details, feel free to delve into the
official Prefect docs or see related
github issues.