---
title: unset
description: "RuntimeConfig.unset method in PySpark: Resets the configuration property for the given key."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/runtimeconfig/unset
---

# unset

Resets the configuration property for the given key.

## Syntax

```
unset(key: str)
```

## Parameters

| Parameter | Type | Description                        |
| --------- | ---- | ---------------------------------- |
| `key`     | str  | Key of the configuration to unset. |

## Examples

```python
spark.conf.set("my_key", "my_value")
spark.conf.get("my_key")
# 'my_value'
spark.conf.unset("my_key")
spark.conf.get("my_key")
# Traceback (most recent call last):
#    ...
# pyspark...SparkNoSuchElementException: ... The SQL config "my_key" cannot be found...
```
