private function removeByPrefix(InputInterface $input, OutputInterface $output)
    {
        $prefix = $input->getOption('prefix');
        $output->writeln(
            sprintf('<comment>Removing all resources from <info>%s</info></comment>', $prefix)
        );

        $api = $this->getCloudinaryApi();

        $response = $api->delete_resources_by_prefix($prefix);
        $this->outputApiResponse($response, 'deleted', $output);
    }