delete method

Future<void> delete()

Deletes the collection referred to by this CollectionReference.

Implementation

Future<void> delete() async {
  final response = await service._delete(collectionUriByID);

  // we don't need the response for anything, but check for errors
  service._handleResponse(response);
  _id = -1;
}