deleteArtifact method

Future<void> deleteArtifact({
  1. required String agentSpaceId,
  2. required String artifactId,
})

Deletes an artifact from an agent space.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agentSpaceId : The unique identifier of the agent space that contains the artifact.

Parameter artifactId : The unique identifier of the artifact to delete.

Implementation

Future<void> deleteArtifact({
  required String agentSpaceId,
  required String artifactId,
}) async {
  final $payload = <String, dynamic>{
    'agentSpaceId': agentSpaceId,
    'artifactId': artifactId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/DeleteArtifact',
    exceptionFnMap: _exceptionFns,
  );
}