> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# SDIFF

> Return the difference between sets

## Arguments

<ParamField body="keys" type="*List[str]" required>
  The keys of the sets to perform the difference operation on.
</ParamField>

## Response

<ResponseField type="set[str]" required>
  The resulting set.
</ResponseField>

<RequestExample>
```py Example 
redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 

assert redis.sdiff("set1", "set2") == {"a", "b"}
```
</RequestExample>
