mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			293 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			293 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Any
 | 
						|
 | 
						|
from django.core.management.base import BaseCommand
 | 
						|
 | 
						|
from zerver.lib.retention import archive_messages, clean_archived_data
 | 
						|
 | 
						|
 | 
						|
class Command(BaseCommand):
 | 
						|
    def handle(self, *args: Any, **options: str) -> None:
 | 
						|
        clean_archived_data()
 | 
						|
        archive_messages()
 |