The flow run history in Prefect Cloud is retained according to the Flow Run Retention Policy set by your account tier, and this applies to all workspaces owned by the account. This policy dictates the number of days each flow run is available in the Prefect Cloud UI, and via the Prefect CLI and API after it reaches a terminal state.
The documentation does not directly state what happens to the flow run history if the flow itself is removed. As a best practice, one would expect that the run history would be retained according to the retention policy, regardless of whether the flow definition remains. However, without explicit confirmation, this is merely an assumption.
To obtain an accurate answer, I would suggest reaching out to Prefect support or searching for additional details on their official documentation or forums. Here's the link to the documentation where the Run Retention Policy is mentioned:
Prefect Run Retention Policy. If you need more detailed information, it's best to contact Prefect directly.