# CreateEmptyPrefab(string)

> Creates an empty Prefab at given path.

## Definition

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

> **Warning:**
>
> **Deprecated.** The concept of creating a completely empty Prefab has been discontinued. You can however use SaveAsPrefabAsset with an empty GameObject.

```csharp
public static Object CreateEmptyPrefab(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The asset path to use for the new empty Prefab.

### Returns

| Type                                                            | Description                          |
| --------------------------------------------------------------- | ------------------------------------ |
| [Object](/engine/6000.0/script-reference/unityengine/object.md) | A reference to the new Prefab Asset. |

### Remarks

If a Prefab at the path already exists it will be deleted and replaced with an empty Prefab. Returns a reference to the Prefab.
