lib/sqs/right_sqs.rb
# Clears queue. 
# Deletes only the visible messages unless +force+ is +true+.
#
#  queue.clear(true) #=> true
#
# P.S. when <tt>force==true</tt> the queue deletes then creates again. This is 
# the quickest method to clear a big queue or a queue with 'locked' messages. All queue
# attributes are restored. But there is no way to restore grantees' permissions to 
# this queue. If you have no grantees except 'root' then you have no problems.
# Otherwise, it's better to use <tt>queue.clear(false)</tt>.
#
# PS This function is no longer supported.  Amazon has changed the SQS semantics to require at least 60 seconds between 
# queue deletion and creation. Hence this method will fail with an exception.
#
Clears queue.
Deletes only the visible messages unless +force+ is +true+.





PS This function is no longer supported.  Amazon has changed the SQS semantics to require at least 60 seconds between
queue deletion and creation. Hence this method will fail with an exception.
Clears queue . Deletes only the visible messages unless + force + is + true + . PS This function is no longer supported . Amazon has changed the SQS semantics to require at least 60 seconds between queue deletion and creation . Hence this method will fail with an exception .
def clear(force=false)
          @sqs.interface.clear_queue(@url)
      end
def clear ( force = false ) @sqs . interface . clear_queue ( @url ) end
Clears queue.
Clears queue .
##        if force ##          @sqs.interface.force_clear_queue(@url) ##        else ##        end
force
<not_specific>