Documentation Index
Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
Use this file to discover all available pages before exploring further.
static removeNotePage(NOTEPath: string, page: number): Promise<APIResponse<boolean>>;
Parameters
| Parameter | Type | Description |
|---|
NOTEPath | string | NOTE file path |
page | number | Page index to delete (starts from 0) |
Returns
Example
import { PluginFileAPI } from 'sn-plugin-lib';
/**
* Example: delete a page.
*/
export async function exampleRemoveNotePage() {
const NOTEPath = '/storage/emulated/0/Note/demo.note';
const page = 2;
const res = await PluginFileAPI.removeNotePage(NOTEPath, page);
if (!res.success) {
throw new Error(res.error?.message ?? 'removeNotePage call failed');
}
return res.result;
}