| Author | 
		  Message
		 | 
		
		  | rmah | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 1:17 pm    Post subject: Delete all queues | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 04 May 2007 Posts: 142
  
  | 
		  
		    
			  
				Just curious, is there a quick way to delete all or a number of queues from a qm using wildcards?  I find it tedious to delete each queue one by one.
 
 
Thanks all!   _________________ MQ 6.0.2.3
 
Broker 6.0.0.7
 
for Linux
  Last edited by rmah on Tue Aug 07, 2007 1:20 pm; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 1:18 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				how about deleting and recreating the qmgr ?   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rmah | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 1:19 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 04 May 2007 Posts: 142
  
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	how about deleting and recreating the qmgr ?   | 
   
 
 
 
that would work, but it would not be good if I wanted to keep a number of queues, but wanted to wipe out a numbe of  others... _________________ MQ 6.0.2.3
 
Broker 6.0.0.7
 
for Linux | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 4:07 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				MQSC/PCF don't support wildcards for the queue name for delete qlocal.
 
 
Any solution that offers such a thing, therefore, would have to generate a list of matching queue names, and then issue individual deletes.
 
 
I'm really quite fine with MQ not supporting the equivalent of "del *.*". _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jeevan | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 6:49 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 12 Nov 2005 Posts: 1432
  
  | 
		  
		    
			  
				| One way is, generate script file using saveqmgr, delete unwanted def and run the remaining script against the qmgr( it requires deleting and recreating qmgr anyway). | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Tue Aug 07, 2007 9:24 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 23 May 2005 Posts: 1716
  
  | 
		  
		    
			  
				MO71 is able to delete a marked range of objects. _________________ Regards, Butcher | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jeevan | 
		  
		    
			  
				 Posted: Wed Aug 08, 2007 11:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 12 Nov 2005 Posts: 1432
  
  | 
		  
		    
			  
				How about WMQTool from niratool.com? You can give a try.
 
 
thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |