So far what I have found is to have CICD steps perform the teardown of development environments with the deployments explicitly declared in that step. Then for deployments that are being "sunsetted" in production, have a one-time script that is run during the CICD deploy step that will delete explicitly declared Prefect Deployments.
Is there a better way to go about this or would this be considered a standard pattern for automated deletion of Prefect Deployments?