Check that the type specifies cleaning the package before doing so.