Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > IMQ Controller > Modules > imq
purge_queue/2
Description
purge_queue/2 is an Erlang function exported by "imq" module.
Clear all messages from the selected queue.
References
•Headers
•register/3
Parameters
Name
Type
Manager
string()
Name of registered MQ manager.
Queue
Name of valid queue created within this MQ manager.
Result
Value or Type
{ok, Code}
On success returns a control code.
Code Sample
> imq:purge_queue("LIBREE", "TEST").