def delete_user(self, user):
from canvasapi.user import User<EOL>user_id = obj_or_id(user, "<STR_LIT:user>", (User,))<EOL>response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.id, user_id)<EOL>)<EOL>return User(self._requester, response.json())<EOL>
Delete a user record from a Canvas root account.

If a user is associated with multiple root accounts (in a
multi-tenant instance of Canvas), this action will NOT remove
them from the other accounts.

WARNING: This API will allow a user to remove themselves from
the account. If they do this, they won't be able to make API
calls or log into Canvas at that account.

:calls: `DELETE /api/v1/accounts/:account_id/users/:user_id \
<https://canvas.instructure.com/doc/api/accounts.html#method.accounts.remove_user>`_

:param user: The user object or ID to delete.
:type user: :class:`canvasapi.user.User` or int

:rtype: :class:`canvasapi.user.User`