Expunge note
documentedPermanently remove a note.
POST /noteStore/expungeNoteNotesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
I investigated the Evernote Cloud API documentation for the NoteStore.expungeNote endpoint and found a mismatch with a typical JSON REST curl. ExpungeNote is a Thrift RPC used against NoteStore, not a JSON REST call. That means there isn’t a simple, fixed JSON HTTP POST URL you can call with a JSON body the way REST APIs normally work. The Cloud API expects a Thrift-encoded request and a dynamic NoteStore URL per user, plus an OAuth-based or developer-token-based authentication flow. Here are the key docs and constraints I found:
- The NoteStore.expungeNote function signature and behavior: expungeNote(string authenticationToken, Types.Guid guid) ... permanently removes a Note and its Resources; not available to third-party apps; PERMISSION_DENIED if the user doesn’t own the Note. ([dev.evernote.com](https://dev.evernote.com/doc/reference/NoteStore.html))
- The NoteStore URL can differ by user and must be discovered (typically via UserStore) before calling NoteStore methods. ([dev.evernote.com](https://dev.evernote.com/doc/articles/core_concepts.php?utm_source=openai))
- Authentication for the Cloud API uses OAuth or developer tokens; token handling is described in the Cloud API docs. ([dev.evernote.com](https://dev.evernote.com/doc/articles/authentication.php?utm_source=openai))
- The official SDKs exist and are the recommended way to call expungeNote (NoteStore). See the Evernote Cloud API SDK references and the Java SDK page for context. ([github.com](https://github.com/Evernote/evernote-sdk-java?utm_source=openai))
Because of these constraints, I can’t provide a valid, executable npx keychains curl command that uses a JSON body to call expungeNote. A correct call would require a Thrift payload and a properly signed OAuth token against the user-specific NoteStore URL, which isn’t compatible with a simple REST-style curl payload. If you want a precise, working implementation, I can provide one of the following instead:
- Node.js or Python example using the official Evernote Cloud API SDKs to expunge a note (recommended approach). I can show a minimal snippet with placeholders for {{OAUTH2_ACCESS_TOKEN}} or a developer token, and the note GUID.
- A description of how to construct a Thrift request and call the NoteStore endpoint directly (advanced), including how to retrieve the NoteStore URL via UserStore and how to sign the request with OAuth.
Would you like me to provide a ready-to-run code example (Node.js or Python) that expunges a note using the official SDKs? If you prefer a curl-based stub, I can draft a Thrift-call skeleton with clear placeholders and explain why it won’t be a JSON POST and how to adapt it with a real Thrift payload.