def remove(self, user, progress=None, **kwargs):
        # Delete all authentication tokens owned by this user
        self.model('token').removeWithQuery({'userId': user['_id']})

        # Delete all pending group invites for this user
        self.model('group').update(
            {'requests': user['_id']},
            {'$pull': {'requests': user['_id']}}
        )

        # Delete all of the folders under this user
        folders = self.model('folder').find({
            'parentId': user['_id'],
            'parentCollection': 'user'
        })
        for folder in folders:
            self.model('folder').remove(folder, progress=progress, **kwargs)

        # Finally, delete the user document itself
        AccessControlledModel.remove(self, user)
        if progress:
            progress.update(increment=1, message='Deleted user ' +
                            user['login'])
Return string of additional attributes to go on the HTML element
dataset/ETHPy150Open girder/girder/girder/models/user.py/User.remove--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailimages/formats.py/Format.editor_attributes