MCPcopy Index your code
hub / github.com/simstudioai/sim / cleanupDeploymentVersion

Function cleanupDeploymentVersion

apps/sim/lib/workflows/schedules/deploy.ts:205–234  ·  view source on GitHub ↗
(params: {
  workflowId: string
  workflow: Record<string, unknown>
  requestId: string
  deploymentVersionId: string
  /**
   * If true, skip external subscription cleanup (already done by saveTriggerWebhooksForDeploy).
   * Only deletes DB records.
   */
  skipExternalCleanup?: boolean
  strictExternalCleanup?: boolean
})

Source from the content-addressed store, hash-verified

203}
204
205async function cleanupDeploymentVersion(params: {
206 workflowId: string
207 workflow: Record<string, unknown>
208 requestId: string
209 deploymentVersionId: string
210 /**
211 * If true, skip external subscription cleanup (already done by saveTriggerWebhooksForDeploy).
212 * Only deletes DB records.
213 */
214 skipExternalCleanup?: boolean
215 strictExternalCleanup?: boolean
216}): Promise<void> {
217 const {
218 workflowId,
219 workflow,
220 requestId,
221 deploymentVersionId,
222 skipExternalCleanup = false,
223 strictExternalCleanup = false,
224 } = params
225 await cleanupWebhooksForWorkflow(
226 workflowId,
227 workflow,
228 requestId,
229 deploymentVersionId,
230 skipExternalCleanup,
231 strictExternalCleanup
232 )
233 await deleteSchedulesForWorkflow(workflowId, db, deploymentVersionId)
234}

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected