# cleanupStorage static method

Future<void> cleanupStorage()

Cleanups the storage folders of the Scanbot SDK.

By calling this function, all output files generated by the native Scanbot SDKs (as well as by this Plugin) will be deleted, including the image files of all scanned or imported Page objects, all generated PDF files, TIFF files, etc.

## Implementation

    static Future<void> cleanupStorage() async {
      try {
        await _channel.invokeMethod('cleanupStorage');
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }