MCPcopy
hub / github.com/subquery/subql / deleteDeployment

Function deleteDeployment

packages/cli/src/controller/deploy-controller.ts:83–98  ·  view source on GitHub ↗
(
  org: string,
  projectName: string,
  authToken: string,
  deploymentId: number,
  url: string
)

Source from the content-addressed store, hash-verified

81}
82
83export async function deleteDeployment(
84 org: string,
85 projectName: string,
86 authToken: string,
87 deploymentId: number,
88 url: string
89): Promise<string> {
90 try {
91 await getAxiosInstance(url, authToken).delete(
92 `subqueries/${buildProjectKey(org, projectName)}/deployments/${deploymentId}`
93 );
94 return `${deploymentId}`;
95 } catch (e) {
96 throw errorHandle(e, 'Failed to delete deployment:');
97 }
98}
99
100export async function deploymentStatus(
101 org: string,

Callers 2

deleteDeploymentAdapterFunction · 0.90

Calls 3

buildProjectKeyFunction · 0.90
errorHandleFunction · 0.90
getAxiosInstanceFunction · 0.85

Tested by

no test coverage detected