Removing applications OS X – forget the app

Sometimes, OS X doesn’t clean application related information properly. This is very common in case you make a development and have different version around the system (Debug/Release).

You can always look for the artifacts related to application following way:

shell> pkgutil --pkgs | grep ApplicationName

You will get the bundle name of the application (e.g. com.company.ApplicationName). To forget it, simply execute:

shell> pkgutil --forget com.company.ApplicationName