layer follows the same rule as other page element operation APIs: for note files (.note), omitting it uses the current layer; for recognized notes and document files, the parameter is ignored whether you pass it or not because they have only one layer.
Returns
APIResponse<boolean>:result === trueindicates the deletion succeeded
- Throws a parameter validation error when
numsInPageis not a valid integer array - Throws a parameter validation error when
pageis not an integer greater than or equal to0 - Throws a parameter validation error when
layeris provided but is not an integer in the range0-3