How to Stop an AI Agent From Deleting Records

Prevent record deletion through the actions an agent receives and the credential it uses. Review destructive effects, ambiguous SQL and MCP tools, defaults and approval behavior.

Chengjun Yuan
Chengjun Yuan
Co-founder & CTO · Oct 23, 2026 ·

Updated November 12, 2026: In a Slack channel, as in a Slack DM, posting a Slack message is the only action that waits for approval, so this post no longer says a channel mention holds back anything Insulin can’t recognize as a read.

To stop an AI agent from deleting records, remove destructive tools from its available actions and restrict the credential it uses in the source system. Give it read access when it only answers questions, and create-and-update access when it maintains records without removing them.

A prompt saying “never delete” expresses the desired behavior; the permission boundary decides whether a destructive call is possible. Review archiving, trashing, voiding, revocation, merging and arbitrary SQL as well as tools explicitly named delete.

Why is a prompt alone insufficient?

An agent may choose a broader action than the task needs. AWS’s least-privilege guidance for generative AI workflows calls this excessive agency: an unintended consequence of automation, even without malicious intent.

The control is to constrain the systems and actions available to the workflow. A model cannot call a tool it was not offered through that execution path. A source credential supplies a second boundary on what the remaining tools can actually do.

Use three separate checks:

  • Systems: which integrations can this agent reach?
  • Tools: which read, create, update and destructive actions does the runtime offer?
  • Credentials: which operations and records does the connected identity have permission to affect?

The integration-scoping guide covers the first question. The read-only access guide covers how the tool setting and the source credential work together.

Which actions should a no-delete review include?

Review effects, not just names. A service may call a removal archive, trash, void or revoke, and a combined operation may remove a source record as part of another task.

Action familyWhat to inspect
DeleteRemoves a record, file, message or personal-data record
Archive or trashTakes an item out of its active location, even if restoration is possible
Void or cancelEnds the active transaction or event
RevokeRemoves an existing share or authorization
MergeCombines records and may remove one of the originals
Arbitrary query or codeCan express changes or removal even when the tool name sounds analytical

The review should decide which of these effects the workflow is allowed to produce. If archiving stale pages is the job, granting that operation may be intentional. If the job only updates page text, it should not receive removal just for convenience.

A “mutating” label alone does not distinguish an update from a removal. Inspect the tool’s documented behavior and the effective action list after applying the access setting.

How do you let an agent update records without deleting them?

Separate create-and-update tools from destructive tools, then restrict the connection underneath. The exact role names differ by platform; check their actual action sets.

For an agent maintaining customer notes, allow the lookup and update operations it needs and omit contact deletion, merge and revocation unless the task requires them. For an agent answering from documentation, omit mutation altogether.

Apply the setting to each integration. A narrow CRM permission does not narrow a second connection to a file store or warehouse. Check the built-in assistant and personal agents as well as shared agents, since their connection ownership and defaults can differ.

AWS’s Agentic AI Lens warns against expanding permissions merely in response to access errors without investigating whether the access pattern is legitimate. If an update-only workflow asks to archive a record, establish whether archiving belongs to the task before raising its access.

Why do SQL tools and external MCP servers need extra review?

An arbitrary-SQL tool can accept a statement that changes or drops data. A tool called query is therefore not evidence that it is safe to pair with a powerful warehouse credential.

For a query-only workflow, inspect the warehouse role as well as the agent setting. The role should enforce the intended access when the tool itself accepts arbitrary statements. The BigQuery query-only setup covers that case.

External MCP servers need the same effect-based review. A platform may classify an unfamiliar tool using its name rather than a complete description of its consequences. Do not infer that a tool is harmless because it lacks the word delete.

Compare the tools the live server exposes with the connector documentation. Where a provider serves its own tools, the list can differ from the platform’s built-in connector. Keep an unreviewed server read-only until its effective actions are understood.

How should you verify the boundary?

Verify the action list and the source permission separately, then exercise allowed behavior with a harmless fixture. Avoid testing a no-delete assumption on a real business record.

  1. Inventory the agents and owners. Include private agents, the built-in assistant, shared agents and scheduled jobs.
  2. Record the effective actions. Check what the runtime actually offers after applying the selected access level.
  3. Check ambiguous tools. Review merge, cancel, revoke, archive and arbitrary-query actions rather than searching only for delete.
  4. Inspect the source credential. Confirm its role and scopes enforce the intended boundary in the connected service.
  5. Verify the execution paths. Check chat and background work independently, including whether an approval card is offered on each surface.
  6. Record the result. Note the owner, integration, chosen level, credential scope and any exception needed for the task.

An agent describing its own tools can help inspect the offered action set. That description does not prove the underlying credential is restricted or establish that every external tool was classified correctly.

How Insulin handles deletion access

Insulin offers Read-only, Edit and Full per integration. Edit permits reading, creating and changing records while excluding tools classified as deletion; Full includes them and is the default, including for integrations selected before the access setting existed. Set the level beside each integration in a custom agent’s configuration, or under the built-in assistant’s pencil → Integrations. The agent documentation defines the boundary and its exceptions.

Surface or toolDocumented behavior
OwnershipA Personal agent is private to its owner. Only an org admin changes an Organization agent’s integrations; jobs retain the creating agent’s access
Built-in assistantLevels apply to your connections for you alone, and follow you into Slack. An unchanged connection stays Full; if levels cannot be read at turn start, the turn is Read-only
Built-in destructive actionsOutlook delete-message; Gong delete-data-for-email; Notion archive-page; monday archive-item; Drive googledrive_trash_file and googledrive_unshare_file; Avalara void-transaction
Less obvious Full-only actionsBigQuery run-query, Databricks run-sql, Intercom merge-contacts and Outlook cancel-event
Warehouse limitWithout Full, BigQuery can list datasets and tables and read schemas but cannot query; Databricks keeps its other nine read tools. Querying therefore needs Full at the agent layer and an appropriate warehouse credential
Organization Fours MCPFixed Edit badge, no select and no deletes; added by an org admin, tools attached only for an org ADMIN or EDITOR
Personal Fours MCPThe connect-time Access is Read only by default, Read & write excludes deletes, Read, write & delete includes them. Agents display Read-only, Edit or Full; change it by reconnecting
Knowledge baseRead or Edit; Edit creates, updates and deprecates but never deletes. Deprecation removes a file from search while preserving restorable chunks
Inbox CRM actionAn action approved with Run in chat is outside these levels and reaches only the CRM connection it came from

The integration reference says built-in tool definitions determine access levels where available; otherwise names are used. For a custom MCP server, an unrecognized read counts as a change, which Edit permits. A destructive tool with an ambiguous name may therefore remain available on Edit. Provider-served tools, such as Datadog’s, can also differ from the listed built-ins; check disable-user rather than guessing. The named Full-only exceptions are not a guarantee about every external tool.

Ask the agent to list the actions it can call at its current level. Intercom on Edit should not list merge-contacts. The integration Details → Actions tab labels actions only Read-only or Mutating, so it cannot by itself show which mutations require Full. Outlook is per-user only; its deletion and cancellation tools belong to your own assistant and Personal agents.

Approval is a separate limit. In a web chat, a Slack DM or a Slack channel where you @mention Insulin, only a Slack post waits; in jobs, Insulin channels, Teams DMs and sub-thread replies the card is not offered and the action is not held. No surface holds a deletion for approval, so set access beforehand. The agents overview places these settings beside sharing and integration scope.

Frequently asked questions

Does blocking deletion also stop an agent from sending email?

No. Sending email does not remove a record and can remain available to an agent allowed to make changes. Review sending permissions and approval behavior separately from deletion controls, including the surface where the agent runs.

Sources

Primary sources for the platform rules cited above. Last verified November 12, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.

  • Fours docs: Integrations, Agent access levels — Agent access levels: Read-only, Edit or Full picked beside each integration in a custom agent's Integrations list, and the same choice in the built-in Insulin assistant for each integration you connected yourself, AI model providers aside; an integration you never narrow running at Full; Full covering the tools that delete, archive, trash, void or revoke something, and tools whose names don't say so, among them run-query in BigQuery and run-sql in Databricks, which run any SQL statement they are given, merge-contacts in Intercom and cancel-event in Microsoft Outlook; an integration served by its provider's own MCP server, such as Datadog, giving that server's tools instead, which can differ from the list; the Actions tab of an integration's Details marking each action Read-only or Mutating, a Mutating action needing Edit, or Full when it removes something; tools from an MCP server you add yourself judged by their names, one not recognised as a read counting as a change; Fours' own MCP server reached at the Access chosen at connect by an agent you own, and at Edit, which never includes deletes, by an organization agent
  • Fours docs: Insulin Agents — Integrations and Knowledge Bases: Read-only looks things up, Edit also changes records, Full also deletes them; Edit reading, creating and changing records but not deleting them, a delete being anything that takes a record out of that service, including archiving, trashing, voiding or revoking, and a tool that runs arbitrary queries counting as one; Full the default and what an integration selected before the access setting existed keeps; each tool's level taken from the integration's own definition of it, otherwise from its name; Fours' MCP server on an organization agent carrying a fixed Edit badge, reading and changing records but never deleting them, its tools attached only for an organization ADMIN or EDITOR; your own Fours MCP connection's badge showing the access chosen at connect, changed by reconnecting; knowledge bases in Read or Edit mode, Edit never deleting; editing an organization agent's integrations requiring organization administrator access; personal agents private to their owner. What the Insulin assistant may do with your integrations: the pencil and the panel's Integrations section, an integration left alone staying at Full, the levels narrowing Insulin for you alone, a turn run at Read-only when Fours cannot read your levels, and an Inbox CRM action you approve not held to these levels. Asking an agent about its own integrations: listing the actions it may actually call given the integration's access level, each marked read-only or not. Tool Approvals: posting a message to Slack pausing for approval whether asked in the web workspace, a Slack DM or a Slack channel; What Insulin can do when mentioned in a channel: as in a DM, only posting a Slack message waiting for approval; the card not offered, and the action not held back, in an Insulin channel, a Microsoft Teams DM, a sub-thread reply or a job run
  • Fours docs: MCP (Model Context Protocol), Connect Fours' own MCP server — The Access level picked on the card at connect, Read only (the default), Read & write (every tool that creates or changes data except deletes) or Read, write & delete; agents showing it as Read-only, Edit or Full, with nothing to change beside it; changing it by disconnecting and connecting again; a connection made before the choice counting as Read only; Access only narrowing the tools on offer, with Fours checking your permissions on every call
  • Fours docs: Insulin Slack Bot — Before You Start: your other connections narrowed one at a time to Read-only, Edit or Full in the Insulin assistant's settings panel, and the bot following those levels as well
  • Fours docs: BigQuery integration — BigQuery org-level only; the four tools; run-query passing whatever SQL it is given, statements that change data included, so an agent gets it only with Full; on Read-only or Edit the agent still listing datasets and tables and reading schemas but unable to run a query
  • Fours docs: Databricks integration — The ten tools; run-sql running whatever statement it is given, including ones that change or drop data, so an agent gets it only with Full; on Read-only or Edit the agent keeping the other nine tools, which only read
  • Fours docs: Intercom integration — Contacts: create, read, update and delete, plus search and merge (merge-contacts)
  • Fours docs: Microsoft Outlook integration — Outlook connected per user only, with no org-level connection; delete-message deleting a message from the mailbox
  • Fours docs: Notion integration — Pages: create, read, update, duplicate, move and archive pages (archive-page)
  • Fours docs: Monday integration — Item lifecycle: move, archive and delete items (archive-item)
  • Fours docs: Google Drive integration — googledrive_trash_file moving a file to Trash; googledrive_unshare_file revoking a share
  • Fours docs: Avalara integration — Transaction lifecycle: commit or void an existing transaction (void-transaction)
  • Fours docs: Gong integration — Meetings, library and data privacy: handling GDPR data requests (delete-data-for-email)
  • Fours docs: Datadog integration — User management: provisioning and disabling Datadog users (create-user, disable-user)
  • Fours docs: Insulin Knowledge Bases — A deprecated document retired from search but not deleted, its chunks preserved and restorable
  • Fours docs: Insulin Inbox, Running a CRM action — A CRM action never executed silently: nothing happens until you click Run in chat; a Run limited to the CRM connection the action came from, with other integrations out of reach
  • Fours docs: Insulin Jobs — A job running as the agent that created it, with that agent's access to resources and integrations
  • AWS Well-Architected Generative AI Lens: GENSEC05-BP01 Implement least privilege access and permissions boundaries for agentic workflows — Excessive agency, where an agent determines the best solution to a problem is to take broader actions beyond its scope, not inherently malicious but an unintended consequence of automation, the agent having little knowledge beyond the prompt as to what behaviors are permitted; the step to implement user confirmation for the agent
  • AWS Well-Architected Agentic AI Lens: AGENTSEC03-BP03 Implement least privilege with dynamic boundaries — The desired outcome of agents operating with the minimum permissions required to complete their defined tasks; the anti-pattern of expanding agent permissions in response to access errors without investigating whether the access pattern is legitimate

Browse every post on the Insulin Blog

Stay Updated

New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.

Follow Fours on LinkedIn