---
title: Remove all attributes
source: https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes
---

## Android

### Syntax [#syntax]

#### Java [#java]

```java
NewRelic.removeAllAttributes ()
```

#### Kotlin [#kotlin]

```kotlin
NewRelic.removeAllAttributes()
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Return values [#return-values]

Returns `true` if recorded successfully, and `false` if it doesn't.

### Example [#example]

#### Java [#java]

```java
boolean attributesRemoved = NewRelic.removeAllAttributes();
```

#### Kotlin [#kotlin]

```kotlin
val attributesRemoved = NewRelic.removeAllAttributes()
```

## iOS

### Syntax [#syntax]

#### Objective-c [#objc]

```objectivec
+ (BOOL) removeAllAttributes();
```

#### Swift [#swift]

```swift
NewRelic.removeAllAttributes() -> Bool
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Return values [#return-values]

Returns `true` if recorded successfully, and `false` if it doesn't.

### Examples [#examples]

#### Objective-C [#obj-c]

```objectivec
BOOL attributesRemoved = NewRelic.removeAllAttributes();
```

#### Swift [#swift]

```swift
let attributesRemoved = NewRelic.removeAllAttributes()
```

## Capacitor

### Syntax [#syntax]

```typescript
removeAllAttributes(options?: {} | undefined) => void
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```typescript
NewRelicCapacitorPlugin.removeAllAttributes();
```

## Cordova

### Syntax [#syntax]

```typescript
removeAllAttributes(): void;
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```js
NewRelic.removeAllAttributes();
```

## .NET MAUI

### Syntax [#syntax]

```csharp
RemoveAllAttributes() : bool;
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```csharp
CrossNewRelic.Current.RemoveAllAttributes();
```

## React Native

### Syntax [#syntax]

```js
removeAllAttributes(): void;
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```js
NewRelic.removeAllAttributes();
```

## Unity

### Syntax [#syntax]

```csharp
RemoveAllAttributes() : bool;
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```csharp
NewRelicAgent.RemoveAllAttributes();
```

## Unreal Engine

### Syntax [#syntax]

```cpp
removeAllAttributes() : void;
```

### Description [#description]

This method removes all attributes from a session. If you want to remove a single session attribute, see [Remove an attribute](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/remove-all-attributes).

### Example [#example]

```cpp
#include "NewRelicBPLibrary.h"

UNewRelicBPLibrary::removeAllAttributes();
```

![Screenshot of the Unreal Engine Plugin Remove Attributes](https://docs.newrelic.com/images/newrelic_unreal_sdk_remove_attribute.webp "Unreal Engine Plugin Remove Attributes")
