add deleteEnvironment method