deleteContainerFile method
Delete a container file by ID.
Implementation
Future<ContainerFileDeleted> deleteContainerFile(String containerId, String fileId) async {
final resp = await httpClient.delete(
_resolve('/containers/$containerId/files/$fileId'),
headers: getHeaders({}) ?? {},
);
if (resp.statusCode == 200) {
return ContainerFileDeleted.fromJson(jsonDecode(resp.body) as Map<String, dynamic>);
}
throw OpenAIRequestException.fromHttpResponse(resp);
}