{"uid":"cap_lFVJIaPyCMlh6Ql74Y2Wr","slug":"x402-hosting-delete-project-27782f1e","name":"x402-hosting Delete Project","description":"Prepaid full-stack Next.js hosting operated by agents. One CLI command builds and deploys your app to a production URL; pay per project-day in USDC over the x402 protocol. No account, no dashboard.","url":"https://api.x402-hosting.com/v1/projects/%7Bid%7D","method":"DELETE","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"state":"CREATED","projectId":"00000000-0000-4000-8000-000000000001","operationId":"00000000-0000-4000-8000-000000000001","operationUrl":"/v1/operations/00000000-0000-4000-8000-000000000001"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IhyvUmXNgBPyGA1eTbJfY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deletes an existing Next.js hosting project by project ID, paid per-call with USDC via x402.","exampleAgentPrompt":"Delete the x402-hosting project with ID 00000000-0000-4000-8000-000000000001 — I no longer need that deployment and want it fully removed.","exampleUseCases":[{"title":"Teardown a completed demo site","prompt":"The demo project I deployed for the client pitch is done — go ahead and delete project 00000000-0000-4000-8000-000000000001 from x402-hosting, I don't need it anymore."},{"title":"Clean up a failed deployment","prompt":"That failed staging deployment on x402-hosting is just wasting resources. Delete project 00000000-0000-4000-8000-000000000002 so we can start fresh."},{"title":"Automated end-of-lifecycle project removal","prompt":"The campaign site's run is over — delete x402-hosting project 00000000-0000-4000-8000-000000000003 as part of the end-of-campaign cleanup."}],"resultDescription":"Returns a JSON object confirming the deletion operation, including the project's current state (e.g. 'CREATED'), the projectId, an operationId, and an operationUrl where the agent can poll for the completed status of the delete operation.","failureModes":["Project ID not found — 404 with unknown project error","Insufficient USDC balance for the $0.01 per-call fee — payment failure","Malformed or missing project ID in path — 400 validation error","Project already deleted or in terminal state — conflict or idempotency error","x402 payment protocol handshake failure — HTTP 402 returned before deletion proceeds"],"whenToPreferThis":"Use this endpoint when you need to programmatically delete a specific hosted Next.js project on x402-hosting by its project ID, particularly in agent-driven workflows where deployments are spun up and torn down automatically and payment is handled via USDC over x402. Prefer this over manual teardown when automating project lifecycle management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T12:40:59.462Z","isFirstParty":false}