Entries deleted inside Cockpit are retained in API

I ran into an issue the other day when trying to delete a large number of entries inside a collection. I used the batch delete option to delete the entries I didn’t need but they still show up when calling the API. Does anyone have any clues on how to fix this?