Remove a "package" on the REST server

def package_remove(name):
    '''
    Remove a "package" on the REST server
    '''
    DETAILS = _load_state()
    DETAILS['packages'].pop(name)
    _save_state(DETAILS)
    return DETAILS['packages']