User Data

User Data

Functions

Description

Functions

flatpak_user_data_delete ()

gboolean
flatpak_user_data_delete (const char *app_id,
                          GCancellable *cancellable,
                          GError **error);

Deletes the data directory for app_id in the current user's ~/.var/app and resets its permissions in the current user's permission store. This affects only the calling user, regardless of whether the application is installed per-user or system-wide. The application does not need to be installed.

If resetting permissions fails after the data directory has been removed, the function returns FALSE. It can be called again to retry the permission reset.

Parameters

app_id

the application ID

 

cancellable

a GCancellable.

[nullable]

error

return location for a GError

 

Returns

TRUE on success, FALSE on failure

Since: 1.19