deleteProject method
Deletes a project. To delete a project, it must not have any placements associated with it.
May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.
Parameter projectName
:
The name of the empty project to delete.
Implementation
Future<void> deleteProject({
required String projectName,
}) async {
ArgumentError.checkNotNull(projectName, 'projectName');
_s.validateStringLength(
'projectName',
projectName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/projects/${Uri.encodeComponent(projectName)}',
exceptionFnMap: _exceptionFns,
);
}