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
- List deployed sites first: npx remotion cloudrun sites ls --region=<region>.
- Copy the exact site ID from the listing into the rm command.
- 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
- Run `remotion cloudrun sites ls` before `rm` to copy exact IDs.
- Match the --region flag to the region where the site was created.
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
- Service ${serviceName} not found
- Comma-separated frame selections are only supported by the l
- JSON.stringify(deployResult)
- You have multiple buckets (${remotionBuckets .map((b) =>
- Bucket creation is required, but no region has been passed.
AI-assisted analysis of remotion-dev/remotion@78fe4bb3fd (2026-08-12).
Data as JSON: /api/errors/a023157b71367803.
Report an issue: GitHub.