capabilities.work

Postgres Find and Delete a Project

A 3-step recipe with Prisma. We can help you get access.

Recipe · 3 steps

Postgres Find and Delete a Project

with Prisma
Works with AI assistants

Find a project by name in a workspace and delete it when a match is found.

  1. List the projects in the workspace so the target project id can be resolved before any destructive action.
  2. Read the matched project to confirm its identity immediately before the irreversible delete.
  3. Permanently delete the confirmed project and all of its databases, backups, and connection strings. Returns 204 No Content on success.
What you'll need to have ready
  • apiToken: Service token or OAuth access token for the Management API, sent as a Bearer token.
  • workspaceId: Identifier of the workspace that owns the project.
For your developer

Arazzo workflow prisma:find-and-delete-project, 3 operations: listProjects → getProject → deleteProject. Specs on APIs.io.