---
title: removeData
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/userdefaults/1682085-removedata
---

# removeData

Removes the data associated with a particular key.

## Declaration

```data
void removeData(
    in String key
);
```

## Parameters

- `key`: The key for the data to be removed.

## See Also

### Modifying User Defaults

- [getData](tvmljs/userdefaults/1682084-getdata.md)
- [setData](tvmljs/userdefaults/1682089-setdata.md)
