Page 1 of 1

Removing queue via API

Posted: Mon May 17, 2021 5:26 pm
by bschooly
I'm trying to remove a simple queue. I first do a print with a filter on target to get the desired queue record. Then I simply do:

/queue/simple/remove
=.id=*7

where *7 is what was returned from the print result's .id value. Results are:

!done

Yet, the queue remains. What am I doing wrong?

Re: Removing queue via API

Posted: Tue May 18, 2021 1:07 am
by rextended
I do not know if on API is like on terminal but:
"print ID" <> .id
0, 1, 2, 3, 4 <> *2, *6, *7a, *80, *9f
print list order <> internal database .id

you try to delete dynamic queue?

Re: Removing queue via API  [SOLVED]

Posted: Tue May 18, 2021 1:27 am
by bschooly
OOPS. Problem was in use of API. I was "consuming" the results of the print command with a readSentence when it should have been readBlock. This no doubt left the i/o out of sync when I executed the remove command. So problem resoled.