deleteCollection method

Future deleteCollection(
  1. String collectionId
)

Implementation

Future<dynamic> deleteCollection(String collectionId) {
  try {
    Future<dynamic> result = databases.deleteCollection(
        collectionId: collectionId, databaseId: config.DATABASEID);
    return result;
  } on AppwriteException catch (e) {
    print(e.toString());
    return Future.value(null);
  }
}