I'm setting up Backstage for local development, and I would like the ability to "preseed" the catalog with various configurations of entities. Backstage already preseeds the catalog with some of its own entities, and I'd like to remove them so that the developer experience is cleaner.
However, I can't find how to delete entities via API. By capturing network logs from the website, it appears that a deletion consists of two requests, both to /api/catalog/entities/by-uid/<uid>
:
- an
OPTIONS
request with aAccess-Control-Request-Method: DELETE
header - a
DELETE
request
However, when I try to make these calls myself - even going so far as to "copy as cURL" and change uids, to ensure headers are matching - the target entity remains.