How can I remove unused code after uninstalling apps?

thank’s @OliUK