Delete Entry
delete_entryDelete a journal entry (soft delete with timestamp). Calling with permanent: true on a previously soft-deleted entry works. Returns success: false for nonexistent entries.
Instructions
Delete a journal entry (soft delete with timestamp). Calling with permanent: true on a previously soft-deleted entry works. Returns success: false for nonexistent entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_id | No | The ID of the entry to delete. If you need to delete multiple entries, use batch_delete_entries instead. | |
| permanent | No | If true, permanently deletes the entry. If false, performs a soft delete. | |
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. | |
| project_number | No | Ignored. Provided for agent compatibility. | |
| expected_version | No | REQUIRED for safe deletion to prevent optimistic concurrency gaps. Get this from get_entry_by_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| details | No | Additional error context | |
| entryId | No | ||
| success | No | ||
| warning | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| permanent | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |