Deta Base python SDK: how can I delete every object inside a base? #588
-
As the title suggests, I would like to delete every record inside a base without having their IDs. Is there a way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
As of now there is no way to delete every record inside a deta base without having there keys. The only workaround is getting all the keys with fetch everything and then delete everything one by one in a loop. |
Beta Was this translation helpful? Give feedback.
-
Atm there's nothing, you could technically use the same endpoint the UI uses to delete the base, but that requires aditional login instead of just project key. |
Beta Was this translation helpful? Give feedback.
-
do you wanna delete the base instead? |
Beta Was this translation helpful? Give feedback.
As of now there is no way to delete every record inside a deta base without having there keys. The only workaround is getting all the keys with fetch everything and then delete everything one by one in a loop.