remotion-dev/remotion · error · Error

${siteName.trim()} was not found in ${region}.

Error message

${siteName.trim()} was not found in ${region}.

What it means

Thrown by the `remotion cloudrun sites rm` CLI command when a site name passed as an argument is not found among the deployed sites returned by getSites(region). The site must exist before it can be removed.

Source

Thrown at packages/cloudrun/src/cli/commands/sites/rm.ts:51

	const region = getGcpRegion();
	const infoOutput = CliInternals.createOverwriteableCliOutput({
		quiet: CliInternals.quietFlagProvided(),
		cancelSignal: null,
		updatesDontOverwrite: false,
		indent: false,
		logLevel,
	});
	infoOutput.update(`Checking ${region} for sites...`, false);

	const deployedSites = await getSites(region);

	for (const siteName of args) {
		infoOutput.update('Getting site info...', false);

		const site = deployedSites.sites.find((s) => s.id === siteName.trim());
		if (!site) {
			infoOutput.update('', false);
			throw new Error(`${siteName.trim()} was not found in ${region}.`);
		}

		infoOutput.update(displaySiteInfo(site), false);
		Log.info({indent: false, logLevel});
		Log.info({indent: false, logLevel});

		const confirmDelete = await confirmCli({
			delMessage: 'Delete? (Y/n)',
			allowForceFlag: true,
		});

		if (!confirmDelete) {
			Log.info({indent: false, logLevel}, 'Aborting.');
			return;
		}

		await deleteSite({
			bucketName: site.bucketName,

View on GitHub (pinned to 78fe4bb3fd)

Solutions

  1. List deployed sites first: npx remotion cloudrun sites ls --region=<region>.
  2. Copy the exact site ID from the listing into the rm command.
  3. Verify the --region flag matches the region where the site was created.

Example fix

# before
npx remotion cloudrun sites rm wrong-id --region=us-central1
# after
npx remotion cloudrun sites ls --region=us-central1
# then use the exact id:
npx remotion cloudrun sites rm <exact-id> --region=us-central1
Defensive patterns

Strategy: validation

Validate before calling

const sites = await getSites(region);
const exists = args.every(name => sites.sites.some(s => s.id === name.trim()));
if (!exists) throw new Error('One or more site IDs do not exist in the region');

Prevention

When it happens

Trigger: Running `remotion cloudrun sites rm <siteName>` where <siteName> does not match any s.id in the deployed sites list for the target region.

Common situations: Typo in the site name, the site was already deleted, or the site exists in a different region than the one targeted.

Related errors


AI-assisted analysis of remotion-dev/remotion@78fe4bb3fd (2026-08-12). Data as JSON: /api/errors/a023157b71367803. Report an issue: GitHub.