Method
FlatpakInstallationremove_local_ref_sync
since: 0.10.0
Declaration [src]
gboolean
flatpak_installation_remove_local_ref_sync (
FlatpakInstallation* self,
const char* remote_name,
const char* ref,
GCancellable* cancellable,
GError** error
)
Description [src]
Remove the OSTree ref given by remote_name:ref from the local flatpak
repository. The ref must not be currently deployed; attempting to remove
a deployed ref will return an error. Use flatpak_installation_uninstall_full()
to remove deployed refs. The next time the underlying OSTree repo is pruned,
objects which were attached to that ref will be removed. This is useful if you
pulled a flatpak ref using flatpak_installation_install_full() and
specified FLATPAK_INSTALL_FLAGS_NO_DEPLOY but then decided not to
deploy the ref later on and want to remove the local ref to prevent it
from taking up disk space. Note that this will not remove the objects
referred to by ref from the underlying OSTree repo, you should use
flatpak_installation_prune_local_repo() to do that.
Available since: 0.10.0
Parameters
remote_name-
Type:
const char*The name of the remote.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. ref-
Type:
const char*The ref.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.