#community-help

Issue with Deleting Documents Using Base64 String IDs in Typesense

TLDR Sean faced issues deleting documents with base64 string IDs in Typesense. Jason clarified that the error was fixed in newer versions, suggesting collection deletion and reindexing as a solution.

Powered by Struct AI
Jun 16, 2022 (19 months ago)
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
07:36 PM
So I have been using object Ids that were a base64 string of some text as my ids for document creation.

This is causing issues trying to delete the document from the collection for any id that contains a forward slash. Why?
This is the error I get.
Funny thing is a can edit the document just fine
07:41
Sean
07:41 PM
I have now switched to using uuid for the id generation but what to do about the 90K documents that I did wrong…?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:10 PM
Hmm, may I know which version of Typesense this is on?
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
08:52 PM
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:10 PM
Ah, we've fixed this issue in the latest versions... Unfortunately there's no way to delete these docs in v0.21.0, except for deleting the collection and reindexing