Delete a function

SDK platic.tools.functions.delete()

Deletes the function for good: its code, its versions, its catalog tool and its connections to agents.

Example

await platic.tools.functions.delete("fn_123");

Path parameters

ParameterTypeDescriptionRequired
functionIdstringFunction ID✓

Response

{
  "status": "success",
  "message": "Function deleted, with its catalog tool and its agent connections",
  "data": {
    "id": "Hk2s9QmXc1",
    "deleted": true
  }
}

Errors

Statusdetails.codeWhen
403FORBIDDEN or INSUFFICIENT_SCOPEThe credential does not have delete access to Integrations (an OAuth token also needs platica:write)
404NOT_FOUNDThe function does not exist in this workspace

Notes

  • Agents that had it connected stop seeing it immediately.
  • Bound secrets are not deleted: they stay in Secrets.
  • Its executions are kept for 30 days.