def deactivate_role(self, role, **kwargs):
role_id = obj_or_id(role, "<STR_LIT>", (Role,))<EOL>response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.id, role_id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return Role(self._requester, response.json())<EOL>
Deactivate a custom role.

:calls: `DELETE /api/v1/accounts/:account_id/roles/:id \
<https://canvas.instructure.com/doc/api/roles.html#method.role_overrides.remove_role>`_

:param role: The object or ID of the role.
:type role: :class:`canvasapi.account.Role` or int

:rtype: :class:`canvasapi.account.Role`