View as Markdown
APITemplate.io icon

APITemplate.io ACTION

Delete an Object

Delete a PDF or an image from CDN and mark the transaction as deleted. See the docs for more information
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's APITemplate.io account once, then configure and run Delete an Object from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "apitemplate_io-delete-object",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    apitemplate_io: { authProvisionId: "apn_xxxxxxx" },
    apiEndpoints: "API Endpoints",
    transactionRef: "Transaction Ref",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Delete an Object inputs
Property Type Description
apiEndpoints API Endpoints string
A regional API endpoint is intended for customers in the same region. The data for the request and generated PDFs/images are processed and stored within the region. see docs
Optional
transactionRef Transaction Ref string
Object transaction reference.
Required Dynamic

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
apitemplate_io-delete-object
Version
0.0.2
App
APITemplate.io
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes