'Deletes a user from manageiq.
Returns:
a short message describing the operation executed.'

def delete_user(self, user):

    try:
        url = ('%s/users/%s' % (self.api_url, user['id']))
        result = self.client.post(url, action='delete')
    except Exception as e:
        self.module.fail_json(msg=('failed    to    delete    user    %s:    %s' % (user['userid'], str(e))))
    return dict(changed=True, msg=result['message'])
