def delete_privilege(self, privilege_id):
self.clean_error()<EOL>try:<EOL><INDENT>url = self.get_url(Constants.DELETE_PRIVILEGE_URL, privilege_id)<EOL>response = self.execute_call('<STR_LIT>', url)<EOL>if response.status_code == <NUM_LIT>:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>self.error = str(response.status_code)<EOL>self.error_description = self.extract_error_message_from_response(response)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>self.error = <NUM_LIT><EOL>self.error_description = e.args[<NUM_LIT:0>]<EOL><DEDENT>
Deletes a Privilege

:param privilege_id: The id of the privilege you want to delete.
:type privilege_id: string

Returns if the action succeed
:return: true if success
:rtype: bool

See https://developers.onelogin.com/api-docs/1/privileges/delete-privilege Delete Privilege documentation