T
TypeDB•3mo ago
georgii

Console database delete

Joshua meant that database create is idempotent. So you can use:
database create Experimental
database delete Experimental
database create Experimental
database delete Experimental
It's not a rule for every operation
5 Replies
F. Andy Seidl
F. Andy Seidl•3mo ago
Ah, that makes sense. Thanks for the clarification! That's a good workaround. (Making delete idempotent would be ideal. 🙂 )
Joshua
Joshua•3mo ago
yea i think console it should be idempotent probably this is where an AI bot we could take with - analyise this thread and implement it in repo xxxx would be so good the fix is really not too hard
georgii
georgiiOP•3mo ago
With only an extra question of whether user delete is a similar operation or not
Joshua
Joshua•3mo ago
yeah probably should be
F. Andy Seidl
F. Andy Seidl•3mo ago
Idempotency for delete operations is generally considered a best practice. https://chatgpt.com/share/685c15b4-b624-800b-89fe-e5531c9d08c5

Did you find this page helpful?