def handle(self, *args, **kwargs):
cutoff = timezone.now()<EOL>cutoff -= app_settings.CONFIRMATION_EXPIRATION<EOL>cutoff -= app_settings.CONFIRMATION_SAVE_PERIOD<EOL>queryset = models.EmailConfirmation.objects.filter(<EOL>created_at__lte=cutoff<EOL>)<EOL>count = queryset.count()<EOL>queryset.delete()<EOL>if count:<EOL><INDENT>self.stdout.write(<EOL>self.style.SUCCESS(<EOL>"<STR_LIT>".format(<EOL>count=count<EOL>)<EOL>)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>self.stdout.write("<STR_LIT>")<EOL><DEDENT>
Handle execution of the command.