---
title: "Enable Eviction"
method: POST
path: "/redis/enable-eviction/{id}"
tags: ["redis"]
---

# Enable Eviction

`POST /redis/enable-eviction/{id}`

## Request

- Base URL: `https://api.upstash.com/v2`
- URL: `https://api.upstash.com/v2/redis/enable-eviction/{id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/upstash/apis/developer-api-upstash/docs/redis/enable-eviction/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint enables eviction for given database.

## Path parameters

- `id` string, required

## Response `200`

Eviction enabled successfully

- string

---

[API](https://skmtc.dev/upstash/apis/developer-api-upstash.md) - [All operations](https://skmtc.dev/upstash/apis/developer-api-upstash/llms.txt) - [OpenAPI document](https://skmtc.dev/upstash/apis/developer-api-upstash/revisions/bddbdcab9052?raw)
