deleteEnvironment method
Delete an environment. Deleting an environment does not delete a configuration from a host.
May throw ResourceNotFoundException. May throw ConflictException. May throw InternalServerException. May throw BadRequestException.
Parameter applicationId
:
The application ID that includes the environment you want to delete.
Parameter environmentId
:
The ID of the environment you want to delete.
Implementation
Future<void> deleteEnvironment({
required String applicationId,
required String environmentId,
}) async {
ArgumentError.checkNotNull(applicationId, 'applicationId');
ArgumentError.checkNotNull(environmentId, 'environmentId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/applications/${Uri.encodeComponent(applicationId)}/environments/${Uri.encodeComponent(environmentId)}',
exceptionFnMap: _exceptionFns,
);
}