# removeAllPages method

Future<ResultWrapper<DocumentData>> removeAllPages(

1. String documentID

)

Remove all pages from a document in one batch operation.

## Implementation

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

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

        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: DocumentData.fromJson);
      } catch (e) {
        Logger.root.severe(e);
        return ResultWrapper.error(e.toString());
      }
    }