MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / delete

Method delete

integrations/shopify/src/rest.ts:296–312  ·  view source on GitHub ↗

* Delete an existing resource.

(
    key: string,
    params: Optional<Parameters<TResource["delete"]>[0], "session">
  )

Source from the content-addressed store, hash-verified

294 * Delete an existing resource.
295 */
296 async delete(
297 key: string,
298 params: Optional<Parameters<TResource["delete"]>[0], "session">
299 ): DeleteReturnType {
300 return this.runTask(
301 key,
302 async (client, task, io) => {
303 await client.rest[this.resourceType].delete(this.#withSession(params));
304 return;
305 },
306 {
307 name: `Delete ${this.resourceType}`,
308 params,
309 properties: basicProperties(params),
310 }
311 );
312 }
313}
314
315export class Rest {

Callers

nothing calls this directly

Calls 4

#withSessionMethod · 0.95
basicPropertiesFunction · 0.90
deleteMethod · 0.65
runTaskMethod · 0.45

Tested by

no test coverage detected