# removeAllPages method

Future<DocumentData> removeAllPages(

1. String documentID

)

Remove all pages from a document in one batch operation.

## Implementation

    Future<DocumentData> removeAllPages(String documentID) async {
      try {
        var operationParamsMap = <String, dynamic>{
          "documentID": documentID,
        };

        var result = await ScanbotSdk.channel
            .invokeMethod('removeAllPages', operationParamsMap);

        return DocumentData.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }