Remove/ Hide/ Clean deployed from Dashboard

I need to remove/ hide/ clean the deploy released on specific project from the environment dashboard.
How can I do that please ?

Hi Eli,

I’ve already replied to you on the email you sent us with the same question. For the sake of other users that might reach this thread, I’m gonna copy my reply over here:

Hi Eli,

You can delete the whole release, but you can't delete a specific deployment for an environment. At least not from the web UI. If you absolutely need to delete it, you can delete the the task related to the deployment using this code snippet:

This will of course NOT make any changes on your Tentacles. It will just remove that deployment record from the Octopus database.