delete

suspend fun delete(queue: String, id: Long): Result<Boolean>(source)

Deletes an item with the specified ID from the given queue.

Return

A Result indicating whether the deletion was successful as a Boolean.

Parameters

queue

The name of the queue from which the item will be deleted.

id

The unique identifier of the item to be deleted.


suspend fun delete(queue: String, ids: List<Long>): Result<List<Long>>(source)

Deletes the specified items from the given queue.

Return

A Result containing a list of successfully deleted item identifiers.

Parameters

queue

The name of the queue from which items will be deleted.

ids

A list of identifiers representing the items to be deleted from the queue.