# UnregisterCustomDependencyPrefixFilter(string)

> Removes custom dependencies that match the prefixFilter.

## Definition

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

```csharp
public static uint UnregisterCustomDependencyPrefixFilter(string prefixFilter)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Prefix filter for the custom dependencies to unregister.

### Returns

| Type                                                         | Description                            |
| ------------------------------------------------------------ | -------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | Number of custom dependencies removed. |

### Examples

```csharp
using UnityEngine;
using UnityEditor;
using UnityEngine.Assertions;
public class CustomDependenciesExample
{
    public static void AddAndRemoveCustomDependencies()
    {
        // Example to to illustrate how UnregisterCustomDependencyPrefixFilter works. Not a useful scenario.
        AssetDatabase.RegisterCustomDependency("MyDependencySystem/DepA", Hash128.Compute("Hello"));
        AssetDatabase.RegisterCustomDependency("MyDependencySystem/DepB", Hash128.Compute("World"));

        var unregistered = AssetDatabase.UnregisterCustomDependencyPrefixFilter("MyDependencySystem/");
        Assert.AreEqual(2, unregistered);
    }
}
```
