---
title: "Set Data Deletion policy."
method: PUT
path: "/v1/policies/dataDeletion"
tags: ["policiesManagement"]
---

# Set Data Deletion policy.

`PUT /v1/policies/dataDeletion`

Set the Data Deletion policy. This policy specifies whether users are allowed to delete data from Sumo Logic. Disabling this policy prevents users from deleting log data. [Learn More](https://help.sumologic.com/Manage/Security/Data_Deletion)

## Request body

- DataDeletionPolicy — Whether the Data Deletion policy is enabled.
  - `enabled` boolean, required — Whether the Data Deletion policy is enabled.

## Response `200`

Data Deletion policy was set successfully.

- DataDeletionPolicy — Whether the Data Deletion policy is enabled.
  - `enabled` boolean, required — Whether the Data Deletion policy is enabled.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/e4e4c7554890/schema)
