---
updatedAt: 2025-07-22T04:26:05.000Z
agentTools:
  projectIndex: https://mcm-docs.moloco.com/v1.1/llms.txt
---

# User Data Deletion Request

# User Data Deletion Request API

The User Data Deletion API enables you to request deletion of user data from the Moloco MCM ingestion service.

## Prerequisites

You need an API key to call the MCM Management API. See the [API Key and SSO credential management](https://mcm-docs.moloco.com/docs/api-and-sso-credential-management#/) guide for instructions.

## Process Overview

1. Obtain your Management API key
2. Submit user IDs for deletion via the API
3. Data will be deleted within 30 days of request

## API Reference

### Endpoint

**POST** `https://{mgmtsvc api}/rmp/mgmt/v1/platforms/{platform_id}/data-deletion-requests/user-events`

### Sample Request

```bash
curl --location 'localhost:15000/rmp/mgmt/v1/platforms/MOLOCO_PORTAL_DEMO/user-data-delete-request' \
--header 'Content-Type: text/plain' \
--header 'X-API-Key: {YOUR_API_KEY}' \
--data '{
  "user_data": [
    {"user_id": "6fdde389-0f19-44e4-b6af-f9a90faf6fbb"},
    {"user_id": "6fdde389-0f19-44e4-b6af-f9a90faf6fbb"},
    {"user_id": "6fdde389-0f19-44e4-b6af-f9a90faf6fbb"}
  ]
}'
```

### Response Codes

| Code | Meaning      | Description                                  |
| ---- | ------------ | -------------------------------------------- |
| 200  | OK           | Request acknowledged, data received          |
| 400  | Bad Request  | Invalid request file header                  |
| 401  | Unauthorized | Invalid API key                              |
| 403  | Forbidden    | No permission to access (API key is missing) |
| 500  | Server Error | Internal server error                        |