def remove_license(self, name=None, url=None):
for k, v in self.licenses[:]:<EOL><INDENT>if (name is None or name == k) and (url is None or url == v):<EOL><INDENT>del(self.licenses[self.licenses.index((k, v))])<EOL><DEDENT><DEDENT>
Remove all licenses matching both key and value.

        :param str name: Name of the license.
        :param str url: URL of the license.