---
title: "Feature: #84780 - Remove entries in localStorage by key prefix"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-84780"
source: "Changelog/9.3/Feature-84780-RemoveEntriesInLocalStorageByKeyPrefix.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #84780 - Remove entries in localStorage by key prefix

See [forge#84780](https://forge.typo3.org/issues/84780)

## Description

The localStorage wrapper `TYPO3/CMS/Backend/Storage/Client` is now capable of removing entries in the localStorage
by a specific key prefix.

## Impact

The method `Client.unsetByPrefix()` takes the prefix as argument. As all keys are internally namespaced with a `t3-`
prefix, this must be omitted in the requested prefix.

Example:

```javascript
function foo() {
    // Removes any localStorage entry whose key starts with "t3-bar-"
    Client.unsetByPrefix('bar-');
}
```
