---
title: "strippingNamespacePrefix(_:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdtoken/strippingnamespaceprefix(_:)"
---

# strippingNamespacePrefix(_:)

Returns this token with the given namespace prefix removed.

## Declaration

```swift
func strippingNamespacePrefix(_ prefix: USDToken) -> USDToken?
```

## Parameters

- `prefix`: The namespace prefix to strip.

## Return Value

Return Value The token with prefix removed, or nil if the prefix does not match.

## Discussion

Discussion Matching is done at namespace boundaries.

## See Also

### Stripping namespaces

- [strippingLeadingNamespace()](usdkit/usdtoken/strippingleadingnamespace().md)
