Skip to main content
You can list your project’s templates and delete the ones you no longer need with the JavaScript and Python SDKs.

List templates

Template.list returns a paginator over your project’s templates, newest first. Pass limit to set the page size (1 to 100, defaults to 100) and nextToken to resume from a previous page.
In async Python, use AsyncTemplate.list() and await paginator.next_items(). Each template includes templateId, names, buildId, buildStatus, cpuCount, memoryMB, diskSizeMB, envdVersion, public, createdAt, updatedAt, lastSpawnedAt, spawnCount, and buildCount (snake_case in Python, e.g. template_id, memory_mb).

Delete a template

Template.delete() deletes a template or snapshot by ID or name. It returns true if the template was deleted and false if it wasn’t found.