You've already forked joplin
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user