Infinite loop in Directus Flow caused ~1.5M records in custom collection, CMS unusable and collection cannot be CRUD / dropped

Hi Directus community,

I ran into a serious issue after creating a Flow with an infinite loop, which continuously created records in a custom collection for almost a day.

Current state

  • The collection now has ~1.5M records

  • Directus Admin UI is accessible again, but:

    • :cross_mark: Cannot CRUD this collection

    • :cross_mark: Cannot drop it from Data Model

    • :cross_mark: API requests time out

  • Other collections work normally

The Flow is already disabled, but the collection is completely unusable.

Main question

:backhand_index_pointing_right: What is the correct and the way to drop this collection?