Apt purge, clean, & autoremove, but for opkg?

For apt, there's sudo apt remove package_name to remove a package, but not its dependancies and configuration. Then, there's sudo apt purge package_name, to remove a package, its dependancies, and its configuration. There's also sudo apt clean, which removes package cache, and sudo apt autoremove, which removes package files that are no longer needed.

For the opkg package manager, I know there's a sudo opkg remove package_name to remove a package, which seems to be the eqivelant to sudo opkg remove package_name for apt. However, upon reading the wiki for opkg, I haven't been able to find anything like sudo apt purge, sudo apt clean, or sudo apt autoremove.

Is there a way to run these apt commands, but for opkg? I know there's sudo opkg remove package_name for removing packages, but what's the opkg equivelant to apt purge, apt clean, and apt autoremove? I'm asking because I'm used to using apt, and I am recently learning about opkg, since I have a linux machine that doesn't come with a default package manager.

For what it's worth, the opkg package manager has been retired and is now replaced with the Apline Package Keeper (apk; starting with OpenWrt 25.12). If you're using an older release, you should be considering upgrading to 25.12.

In OpenWrt, by default there is only the root user and there is no sudo feature.

This is generally not a thing, in large part because of the nature of how OpenWrt functions and the target devices (typically flash based with squashfs which is a read-only base filesystem).

That said, you can see all the features for both opkg and apk in the documentation.