Created attachment 138386 [details] [review] Patch to pm/functions.in implementing "removestate" function While writing a sleep.d hook that saves a large amount of state information relative to the size of the file system that state files are stored on (space I'd like to recover after resuming), I found that there's no utility function for removing an existing piece of state without breaking the fourth wall and directly deleting the state file from the file system. This (attached) simple patch against the Git master branch implements a "removestate" function providing that missing ability.
pm-utils hasn't been touched in eight years, none of this is likely to get addressed. Closing bugs and disabling the bz product.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.