> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/nexorm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/nexorm/operators/update-operators/global-operators/usdclear.md).

# $clear

The $clear operation is used to remove all values from a field, effectively resetting it. This operation clears the contents of arrays, objects, or other data types in the specified field without deleting the field itself. It’s useful for situations where you need to clear the data but maintain the structure of the field for future updates.

```typescript
await Member.$update({
    $where: { 
        age: { 
            $eq: 16 
        } 
    },
    $update: {
      $clear: {
        logins: true
      }
    }
});
```
