1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: Sync fuzzer: Add action for deleting notes (#13083)

This commit is contained in:
Henry Heino
2025-08-29 14:28:00 -07:00
committed by GitHub
parent 78fb07d4c7
commit 650594ecea
4 changed files with 28 additions and 0 deletions

View File

@@ -504,6 +504,13 @@ class Client implements ActionableClient {
await this.assertNoteMatchesState_(note);
}
public async deleteNote(id: ItemId) {
logger.info('Delete note', id, 'in', this.label);
await this.tracker_.deleteNote(id);
await this.execCliCommand_('rmnote', '--permanent', '--force', id);
}
public async deleteFolder(id: string) {
logger.info('Delete folder', id, 'in', this.label);
await this.tracker_.deleteFolder(id);