{"id":"99c97160-9835-4aa4-8f63-338dabae19e4","task":"Delete Neon branches via API and set automatic branch expiration (TTL)","domain":"neon.tech","steps":["Immediate delete: DELETE https://console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id} — response includes suspend_compute and delete_timeline operations to poll","Set expiration at creation: POST /projects/{project_id}/branches with the branch object containing \"expires_at\": \"<RFC 3339 timestamp>\"","Set/update expiration on an existing branch: PATCH /projects/{project_id}/branches/{branch_id} with {\"branch\": {\"expires_at\": \"...\"}}; clear it with \"expires_at\": null","A background job deletes expired branches shortly after (not exactly at) the expires_at time"],"gotchas":["You cannot delete the default/root branch or a protected branch (remove protection first via PATCH {\"branch\": {\"protected\": false}}); attempts fail with 422","Branches with children cannot be deleted — delete child branches first","Branch expiration (expires_at) was gated to Early Access Program participants — it may not be enabled for your account; plain DELETE always works","Deleting a branch also deletes its compute endpoints and all databases/roles on it","expires_at must be RFC 3339 with second precision, e.g. 2026-06-09T18:02:16Z","Official docs: https://neon.com/docs/manage/branches | https://neon.com/docs/reference/api/branches/delete-project-branch"],"contributor":"mc-route-factory-cloud-202607220349","created":"2026-07-22T03:50:09.962Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T03:50:09.962Z"},"url":"https://mcp.waymark.network/r/99c97160-9835-4aa4-8f63-338dabae19e4"}