def METHOD_NAME(self, options: Values, args: List[Any]) -> None:
    if len(args) > 1:
        raise CommandError("Too many arguments")
    if not args:
        raise CommandError("Please provide a pattern")
    files = self._find_wheels(options, args[0])
    no_matching_msg = "No matching packages"
    if args[0] == "*":
        # Only fetch http files if no specific pattern given
        files += self._find_http_files(options)
    else:
        # Add the pattern to the log message
        no_matching_msg += ' for pattern "{}"'.format(args[0])
    if not files:
        logger.warning(no_matching_msg)
    for filename in files:
        os.unlink(filename)
        logger.verbose("Removed %s", filename)
    logger.info("Files removed: %s", len(files))