# IRPCMonitoringDatapointsSink.ClearDatapointsForIndexing

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Server integration API](https://developer.m-files.com/APIs/gRPC-API/integration/index.md) > [Monitoring data points](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringDatapointsSink/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringDatapointsSink/ClearDatapointsForIndexing/

Badges: `Server integration API / specialized` `internal: not for applications` `write` `session`

Deletes the stored indexing data points of one index.

- **Service:** [Monitoring data points](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringDatapointsSink/index.md) `MFiles.IRPCMonitoringDatapointsSink`
- **gRPC method:** `/MFiles.IRPCMonitoringDatapointsSink/ClearDatapointsForIndexing`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/clear-datapoints-for-indexing`
- **Request:** [`ClearDatapointsForIndexingRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringDatapointsSink/ClearDatapointsForIndexing/index.md#request)
- **Response:** [`ClearDatapointsForIndexingResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringDatapointsSink/ClearDatapointsForIndexing/index.md#response)
- **Book and level:** Server integration API, specialized
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

**For M-Files components only.** The M-Files indexing service calls it. Applications should not
call it.
- Deletes the stored data points of the index.
- Requires the system administrator server role (server right `log_in_to_any_vault`) and the
  vault rights `change_metadata_structure`, `see_all_objects` and `license_allows_modifications`.

<a id="request"></a>

## Request: ClearDatapointsForIndexingRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `source` | [`MonitoringSourceForIndexing`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MonitoringSourceForIndexing/index.md) | The monitoring data source. |
| `source.index` | [`IndexName`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.IndexName/index.md) | Identifies the index associated with the monitoring data. |
| `source.index.configuration_name` | `string` | The name of the index configuration. |
| `source.index.repository_connection` | `string` | Identifies the external repository connection. |
| `source.index.configuration_type` | [`IndexConfigurationType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.IndexConfigurationType/index.md) | The index configuration type (e.g., Shared versus Legacy). Values: `INDEX_CONFIGURATION_TYPE_UNKNOWN` (0), `INDEX_CONFIGURATION_TYPE_LEGACY` (1), `INDEX_CONFIGURATION_TYPE_SHARED` (2), `INDEX_CONFIGURATION_TYPE_ANY` (3). |
| `source.auxiliary_indexer_id` | `string` | If set, identifies auxiliary indexer associated with the monitoring data. |
| `source.partition` | [`IndexerPartition`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.IndexerPartition/index.md) | If set, specifies the partition associated with the monitoring data. |
| `source.partition.rule` | [`IndexerPartitioningRule`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.IndexerPartitioningRule/index.md) | Specifies how the indexing is partitioned. |
| `source.partition.id` | `uint32` | Zero-based identifier of the partition. |

<a id="response"></a>

## Response: ClearDatapointsForIndexingResponse

No fields.
