# removePage method

Future<DocumentData> removePage(

1. RemovePageParams params

)

Remove a page from a document.

## Implementation

    Future<DocumentData> removePage(RemovePageParams params) async {
      try {
        var result = await ScanbotSdk.channel
            .invokeMethod('removePageFromDocument', params.toJson());

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