Skip to content

feat: remove delete-by-type and add delete-by-id for catalog entities - #247

Merged
jeff-schnitter merged 3 commits into
mainfrom
remove-delete-by-type
Oct 12, 2026
Merged

jeff-schnitter merged 3 commits into
mainfrom
remove-delete-by-type

Conversation

@jeff-schnitter

@jeff-schnitter jeff-schnitter commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the catalog delete-by-type CLI command, which allowed bulk-deleting all entities of a given type — motivated by a customer incident where this accidentally wiped all their entities
  • Adds catalog delete-by-id as a safer replacement, using the new delete-entities-by-id API which requires explicit CIDs (e.g. en2da8159dbeefb974) rather than a broad type filter

Usage:

cortex catalog delete-by-id --id en2da8159dbeefb974 --id en1234567890abcdef

Test plan

  • Verify cortex catalog delete-by-type is no longer available
  • Verify cortex catalog delete-by-id --id <cid> deletes the specified entity
  • Verify multiple --id flags delete multiple entities
  • Run just test-all to confirm no regressions

Notes

The test_perf_rate_limiting.py test calls the underlying API directly for cleanup — unaffected by this change.

The next version will be 1.47.0 (minor bump from the feat: commit).

🤖 Generated with Claude Code

jeff-schnitter and others added 2 commits October 5, 2026 13:07
… entity deletion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces the removed delete-by-type with the safer delete-entities-by-id
endpoint, which requires explicit CIDs rather than a broad type filter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jeff-schnitter jeff-schnitter changed the title fix: remove catalog delete-by-type command feat: remove delete-by-type and add delete-by-id for catalog entities Oct 12, 2026
- Accepts --file/-f with one CID per line as an alternative to --id/-i flags
- Hidden --batch-size param (default 100) controls API call batching for large files
- Validates that exactly one of --id or --file is provided

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jeff-schnitter
jeff-schnitter merged commit e331a14 into main Oct 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant