Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add Queue.Clear

  • Loading branch information...
commit 7845d9c668fa6ab20a1794bdbcc68086639e561c 1 parent bae41f9
@edsrzf edsrzf authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 ironmq.go
5 ironmq.go
@@ -158,6 +158,11 @@ func (q *Queue) Info() (*QueueInfo, error) {
return &qi, nil
+// Clear clears all messages from the queue.
+func (q *Queue) Clear() error {
+ return q.Client.req("POST", "queues/"+q.Name+"/clear", nil, nil)
// Get takes one Message off of the queue. The Message will be returned to the queue
// if not deleted before the item's timeout.
func (q *Queue) Get() (*Message, error) {

0 comments on commit 7845d9c

Please sign in to comment.
Something went wrong with that request. Please try again.