Capítulo 537 de 988

Chapter 537: deleteSite()

Core Idea

<ExperimentalBadge> <p> Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.

Key Concepts

  • Example
  • Arguments
  • bucketName
  • siteName
  • Return value
  • See also

Code Examples

const region: GcpRegion = 'australia-southeast1';

const {sites} = await getSites(region);

for (const site of sites) {
  await deleteSite({
    bucketName: site.bucketName,
    siteName: site.id,
  });
  console.log(`Site ${site.id} deleted.`);
}
  • What it demonstrates: Usage pattern for deleteSite() from the official docs.

Key Takeaways

  1. Understand example when working with deleteSite().
  2. Understand arguments when working with deleteSite().
  3. Understand bucketname when working with deleteSite().
  4. Understand sitename when working with deleteSite().
  5. Understand return value when working with deleteSite().

Connects To

  • api: related page in the Cloud Run (@remotion/cloudrun) section.
  • Checklist: related page in the Cloud Run (@remotion/cloudrun) section.
  • cli: related page in the Cloud Run (@remotion/cloudrun) section.