Skip to content
Fourohtwo

Use when an agent must remove a stored file before it expires

1gateway.dev/v1/files/delete

Use when an agent must remove a stored file before it expires. Pay from the wallet that uploaded it (USDC on any EVM network in the 402 quote). Input: id. Output: status deleted, bytes freed. Public and signed links stop working at once. Missing file: 404, not charged. Example: ?id=0123456789abcdef0123456789abcdef

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/files/delete

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/files/delete?id=0123456789abcdef0123456789abcdef");
console.log(await res.json());

Example input

{
  "id": "0123456789abcdef0123456789abcdef"
}

More from Agent File StorageProvider status