Cancel the API Key when an environment is deleted
Is your feature request related to a problem? Please describe.
It is more of an oversight. Whenever an Environment is deleted within a project the API still returns calls if the key is provided.
Describe the solution you'd like
We should delete the API key along with the environment.
Describe alternatives you've considered
Maybe we want to wait for a period before deleting the API key or do a soft delete of sorts in the case the Env needs to be restored.
Additional context
NA
Related: https://github.com/Flagsmith/flagsmith/issues/1875
Related https://github.com/Flagsmith/flagsmith/issues/3060
#3060 is caused by soft delete; unrelated to this.