deleteCollection method

  1. @override
Future<void> deleteCollection(
  1. String collectionName
)
override

Implementation

@override
Future<void> deleteCollection(String collectionName) async {
  try {
    await client.deleteCollection(name: collectionName);
  } on ChromaApiClientException catch(e) {
    VectorDatabaseException vdbException = VectorDatabaseException(
        code: e.code??500,
        message: e.message + ": " + (e.body is String ? (e.body as String) : e.body.toString())
    );
    throw vdbException;
  }
}