Purge outbound notecard queue

Hi,

Is it possible to purge the outbound notecard queue ? I am having a hard finding this info.
There is a note.delete call bit it seems to address a note file and not the outbound queue.

Thanks,
Serge

Hi @ssozonoff ,

To clarify, do you mean you mistakenly enqueued Notes and you want them to be deleted before sending them to Notehub, or do you mean to force a sync with Notehub, thus emptying the queue?

Thanks,
Zak

Hi.

So with my testing I have managed to reach the 100 note limit (I am in hub.set mode “off”), I dont want to send these. I did a card.restore but was wondering if there was a better way ?

Thanks,
Serge

To solve that problem, it’s probably best to loop through each Note with "delete":true.

Pseudo code:

do err = {note.get delete:true} while !err;

So maybe an API improvement for the future :wink:

Thanks.

Rather late to the party here, but if you want to delete all of the notes in a (presumably .qo or .db) notefile you could just delete the notefile:
https://dev.blues.io/reference/notecard-api/file-requests/#file-delete

The only downside to this is that if the notefile had a template you would need to re-set the template.
Thanks
Sean

Thanks, will give this a try next time I am in this situation.

Serge