According to the API, we delete a page by switching "archived" to true. My code is as follows:
//in async
await notion.pages.update({page_id: idVar, archived: true});
but no dice. I can set parameters and whatnot, but this particular property doesn't seem to work.
Edit: Thanks guys, code worked fine after updating the API!