---
title: Remove
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/remove
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/remove.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:51:55.205Z
locale: en-us
---

# Remove

> Removes the skeleton node that has the same identifier as a node.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

## Remove(SkeletonNode)

Removes the skeleton node that has the same identifier as a node.

```csharp
public bool Remove(in SkeletonNode node)
```

### Parameters

**** (\[SkeletonNode]\(/engine/7000.0/script-reference/unity/animations/skeletonnode)): A node with the identifier of the node to remove.

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a node with the identifier. Otherwise, false. |

### Remarks

The method only compares the [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md). It also removes the descendants of the node and the sockets attached to the removed nodes.

The method decreases the index of each node after a removed node, and updates the [SkeletonNode.ParentIndex](/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex.md) of the nodes and the [SocketNode.BoneParentIndex](/engine/7000.0/script-reference/unity/animations/socketnode/boneparentindex.md) of the sockets to match.

## Remove(LocalTranslationChannel)

Removes the translation channels that have the same identifier as a channel.

```csharp
public bool Remove(in LocalTranslationChannel channel)
```

### Parameters

**** (\[LocalTranslationChannel]\(/engine/7000.0/script-reference/unity/animations/localtranslationchannel)): A channel with the identifier of the channels to remove.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a channel with the identifier. Otherwise, false. |

### Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a translation channel. To remove a bone, use [RigBuilder.Remove](/engine/7000.0/script-reference/unity/animations/rigbuilder/remove.md).

## Remove(LocalRotationChannel)

Removes the rotation channels that have the same identifier as a channel.

```csharp
public bool Remove(in LocalRotationChannel channel)
```

### Parameters

**** (\[LocalRotationChannel]\(/engine/7000.0/script-reference/unity/animations/localrotationchannel)): A channel with the identifier of the channels to remove.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a channel with the identifier. Otherwise, false. |

### Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a rotation channel. To remove a bone, use [RigBuilder.Remove](/engine/7000.0/script-reference/unity/animations/rigbuilder/remove.md).

## Remove(LocalScaleChannel)

Removes the scale channels that have the same identifier as a channel.

```csharp
public bool Remove(in LocalScaleChannel channel)
```

### Parameters

**** (\[LocalScaleChannel]\(/engine/7000.0/script-reference/unity/animations/localscalechannel)): A channel with the identifier of the channels to remove.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a channel with the identifier. Otherwise, false. |

### Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a scale channel. To remove a bone, use [RigBuilder.Remove](/engine/7000.0/script-reference/unity/animations/rigbuilder/remove.md).

## Remove(FloatChannel)

Removes the skeleton node that has the same identifier as a node.

```csharp
public bool Remove(in FloatChannel channel)
```

### Parameters

**** (\[FloatChannel]\(/engine/7000.0/script-reference/unity/animations/floatchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a node with the identifier. Otherwise, false. |

### Remarks

The method only compares the [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md). It also removes the descendants of the node and the sockets attached to the removed nodes.

The method decreases the index of each node after a removed node, and updates the [SkeletonNode.ParentIndex](/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex.md) of the nodes and the [SocketNode.BoneParentIndex](/engine/7000.0/script-reference/unity/animations/socketnode/boneparentindex.md) of the sockets to match.

## Remove(IntChannel)

Removes the integer channels that have the same identifier as a channel.

```csharp
public bool Remove(in IntChannel channel)
```

### Parameters

**** (\[IntChannel]\(/engine/7000.0/script-reference/unity/animations/intchannel)): A channel with the identifier of the channels to remove.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a channel with the identifier. Otherwise, false. |

### Remarks

The method only compares the identifiers, like Equals.

## Remove(EntityIdChannel)

Removes the entity ID channels that have the same identifier as a channel.

```csharp
public bool Remove(in EntityIdChannel channel)
```

### Parameters

**** (\[EntityIdChannel]\(/engine/7000.0/script-reference/unity/animations/entityidchannel)): A channel with the identifier of the channels to remove.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a channel with the identifier. Otherwise, false. |

### Remarks

The method only compares the identifiers, like Equals.

## Remove(SocketNode)

Removes the sockets that have the same identifier as a socket.

```csharp
public bool Remove(in SocketNode socketNode)
```

### Parameters

**** (\[SocketNode]\(/engine/7000.0/script-reference/unity/animations/socketnode)): A socket with the identifier of the sockets to remove.

### Returns

| Type                                                          | Description                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder had a socket with the identifier. Otherwise, false. |

### Remarks

The method only compares the [SocketNode.Id](/engine/7000.0/script-reference/unity/animations/socketnode/id.md). It decreases by one the index of each socket after a removed socket.
