API call for deleting an environment gives 404

Summary

A call to https://docs.gitlab.com/ce/api/enviroments.html#delete-an-environment using the ID received using https://docs.gitlab.com/ce/api/enviroments.html#list-environments returns a 404 status

Steps to reproduce

Expected behavior

The environment should be deleted

Actual behavior

The response is a 404 status, and the environment still exists.

Additional remarks

This is not #24147 (closed) I really want to delete some environments. Deleting an environment is also missing in the UI https://.../environments/1/edit