# RevertAddedComponent(Component, InteractionMode)

> Removes this added component on a Prefab instance.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void RevertAddedComponent(Component component, InteractionMode action)
```

### Parameters

**** (\[Component]\(/engine/6000.0/script-reference/unityengine/component)): The added component on the Prefab instance to revert.**** (\[InteractionMode]\(/engine/6000.0/script-reference/unityeditor/interactionmode)): The interaction mode for this action.

### Remarks

After the revert action, the component no longer exists.
