**Bug description** Another one from @jdelsman: When purging empty packages, we forget to also purge them from the SSM package.