You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `delete` method removes the key-value pair associated with the given key.
120
120
121
+
### Delete All
122
+
123
+
To remove all data from the database, use the `deleteAll` method. This is useful for scenarios like logging out a user, clearing cache, or resetting the application state.
print('All data has been deleted from the database');
134
+
}
135
+
```
136
+
137
+
> ⚠️ **Warning**: The `deleteAll` method removes all data from the database. This operation cannot be undone, so use it with caution.
138
+
121
139
These basic CRUD operations are the foundation for managing data in QuantaDB. In the next sections, we will explore more advanced topics like querying and transactions.
0 commit comments