deleteAsset method
Deletes an asset and all its files from the specified agent space
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier for the agent space containing the asset
Parameter assetId :
The unique identifier of the asset to delete
Implementation
Future<void> deleteAsset({
required String agentSpaceId,
required String assetId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/asset/agent-space/${Uri.encodeComponent(agentSpaceId)}/assets/${Uri.encodeComponent(assetId)}',
hostPrefix: 'dp.',
exceptionFnMap: _exceptionFns,
);
}