add script and tests and documentation for invalidating unwanted licences