'Remove the package from the specified remove_path
pkg_name    : name of the package (ex: test-sleeptest.tar.bz2,
dep-gcc.tar.bz2)
remove_path : the location to remove the package from.'

def remove_pkg(self, pkg_name, remove_path=None, remove_checksum=False):

    if remove_path:
        remove_path_list = [remove_path]
    elif (len(self.upload_paths) > 0):
        remove_path_list = self.upload_paths
    else:
        raise error.PackageRemoveError('Invalid    path    to    remove    the    pkg    from')
    checksum_path = self._get_checksum_file_path()
    if remove_checksum:
        self.remove_checksum(pkg_name)
    for path in remove_path_list:
        self.remove_pkg_file(pkg_name, path)
        self.upload_pkg_file(checksum_path, path)
