pub fn remove_state_payload(profile_dir: &Path, mod_name: &str) -> Result<()>Expand description
Removes a mod’s State-tracked payload files and then its _state file, so
an uninstall leaves nothing behind for a mod whose files live under
non-namespaced routes (which remove_delisted does not reconcile).
A missing _state file is a no-op — the mod tracked no State files. A
payload file that is already gone (e.g. the mod was disabled first) is
skipped. Unlike disable_mod, this also deletes the tracker itself, since
after an uninstall there is nothing left to restore.