Skip to content

Comments

Command to delete inactive users#1220

Open
JiaqiWang18 wants to merge 12 commits intodevelopfrom
user-deletion
Open

Command to delete inactive users#1220
JiaqiWang18 wants to merge 12 commits intodevelopfrom
user-deletion

Conversation

@JiaqiWang18
Copy link
Member

@JiaqiWang18 JiaqiWang18 commented Apr 20, 2025

Description

Created command python manage.py deleteinactiveuser to delete inactive users in batches.
Allowed arguments:

 parser.add_argument(
    '--dry-run',
    action='store_true',
    help='Run the command without actually deleting users',
)
parser.add_argument(
    '--years',
    type=int,
    default=2,
    help='Number of years of inactivity before deletion (default: 2)',
)
parser.add_argument(
    '--batch-size',
    type=int,
    default=100,
    help='Number of users to process (default: 100)',
)

Created command execution log to view execution details and errors
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants