---
title: "remove(_:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/inferencefunction/outputs/remove(_:)"
---

# remove(_:)

Removes and returns the output value with the specified name.

## Declaration

```swift
mutating func remove(_ outputName: String) -> InferenceValue?
```

## Parameters

- `outputName`: The name of the output to remove.

## Mentioned in

Integrating on-device AI models in your app with Core AI

## Return Value

Return Value The output value, or nil if no output with the specified name exists.

## Discussion

Discussion After you remove a value, subsequent calls with the same name return nil.

## See Also

### Accessing outputs

- [count](coreai/inferencefunction/outputs/count.md)
- [names](coreai/inferencefunction/outputs/names.md)
