a method to retrieve the account details of a user in the bucket
            
        :param uid: string with id of user in bucket
        :param delete_views: boolean to remove indices attached to user
        :return: integer with status of delete operation

def delete_user(self, uid, delete_views=True):
        
        '''
            a method to retrieve the account details of a user in the bucket
            
        :param uid: string with id of user in bucket
        :param delete_views: boolean to remove indices attached to user
        :return: integer with status of delete operation
        '''
    
        title = '%s.delete_user' % self.__class__.__name__
        
    # validate inputs
        input_fields = {
            'uid': uid
        }
        for key, value in input_fields.items():
            if value:
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.%s' % key, object_title)
    
    # delete any existing sessions
        self.delete_sessions(uid)
    
    # delete any existing views
        if delete_views:
            self.delete_view(uid=uid)
            
    # construct url
        url = self.bucket_url + '/_user/%s' % uid

    # send request
        response = requests.delete(url)
    
    # report outcome
        self.printer('User "%s" removed from bucket "%s"' % (uid, self.bucket_name))
        
        return response.status_code