# cleanupStorage static method

1. @Deprecated('This method is no longer recommended for use. Consider managing storage manually.')

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

    @Deprecated(
        'This method is no longer recommended for use. Consider managing storage manually.')
    static Future<void> cleanupStorage() async {
      try {
        await channel.invokeMethod('cleanupStorage');
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }