deleteBox<T> method

Future<void> deleteBox<T>(
  1. String boxKey
)

Clear individual box Box will be closed after it is cleared

Implementation

Future<void> deleteBox<T>(String boxKey) async {
  try{
    await openBoxes[boxKey]!.deleteFromDisk();
  }catch(e){
    throw("Trying to delete a box that is not contained inside of openBoxes");
  }
}