View as Markdown
DigitalOcean Spaces icon

DigitalOcean Spaces ACTION

Delete Files

Delete files in a bucket. See the docs.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DigitalOcean Spaces account once, then configure and run Delete Files 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: "digitalocean_spaces-delete-files",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    digitalocean_spaces: { authProvisionId: "apn_xxxxxxx" },
    bucket: "S3 Bucket Name",
    acl: "ACL",
  },
})

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 Files inputs
Property Type Description
bucket S3 Bucket Name string
The S3 Bucket Name
Required Dynamic
acl ACL string
The canned ACL to apply to the object
Optional
contentType Content Type string
A standard MIME type describing the format of the object data. Eg. text/plain
Optional
metadata Metadata object
A map of metadata to store with the object in S3.
Optional
files Files string[]
The list of files to be deleted
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
digitalocean_spaces-delete-files
Version
1.0.1
App
DigitalOcean Spaces
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes