Updated deleteUsers to use V2 API Endpoints (#2624)
This commit is contained in:
@@ -209,6 +209,12 @@ mode: "wide"
|
||||
|
||||
<Tab title="TypeScript">
|
||||
|
||||
<Update label="2025-05-05" description="v2.1.23">
|
||||
**New Features:**
|
||||
- **Client:** Updated `deleteUsers` to use `v2` API.
|
||||
- **Client:** Deprecated `deleteUser` and added deprecation warning.
|
||||
</Update>
|
||||
|
||||
<Update label="2025-05-02" description="v2.1.22">
|
||||
**New Features:**
|
||||
- **Client:** Updated `deleteUser` to use `entity_id` and `entity_type`
|
||||
|
||||
@@ -1513,7 +1513,7 @@ client.delete_users({ user_id: "alex" })
|
||||
```
|
||||
|
||||
```bash cURL
|
||||
curl -X DELETE "https://api.mem0.ai/v1/entities/?user_id=alex" \
|
||||
curl -X DELETE "https://api.mem0.ai/v2/entities/user/alex" \
|
||||
-H "Authorization: Token your-api-key"
|
||||
```
|
||||
|
||||
@@ -1531,12 +1531,6 @@ curl -X DELETE "https://api.mem0.ai/v1/entities/?user_id=alex" \
|
||||
client.reset()
|
||||
```
|
||||
|
||||
```javascript JavaScript
|
||||
client.reset()
|
||||
.then(result => console.log(result))
|
||||
.catch(error => console.error(error));
|
||||
```
|
||||
|
||||
```json Output
|
||||
{'message': 'Client reset successful. All users and memories deleted.'}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user