new_contents: from django.conf import settings
  from django.utils import translation
  
  from froide.celery import app as celery_app
  
  from .models import User
  
  
  @celery_app.task
  def cancel_account_task(user_pk):
      from .utils import cancel_user
  
      translation.activate(settings.LANGUAGE_CODE)
  
      try:
          user = User.objects.get(pk=user_pk)
      except User.DoesNotExist:
          return
  
      cancel_user(user)
  
  
  @celery_app.task
  def delete_unconfirmed_users_task():
      from .utils import delete_unconfirmed_users
  
      translation.activate(settings.LANGUAGE_CODE)
  
      delete_unconfirmed_users()
  
  
  @celery_app.task
  def delete_deactivated_users_task():
      from .utils import delete_deactivated_users
  
      translation.activate(settings.LANGUAGE_CODE)
  
      delete_deactivated_users()
  
subject: Add account tasks