code: def remove_accounts_from_project(accounts_query, project):
      
  
      query = accounts_query.filter(date_deleted__isnull=True)
  
      for account in query:
          remove_account_from_project(account, project)
docs: Remove accounts from project.