client.secrets.delete_secret_by_name() deletes a secret from a folder in an environment of a project. The machine identity needs a role in the project that can change secrets, such as Member.
Parameters
The ID of the project. Pass
project_id or project_slug. If you pass both, the SDK uses project_id.