<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/InferenceFunction/Outputs/remove(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core AI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime17InferenceFunctionV7OutputsV6removeyAA0C5ValueVSgSSF"
  },
  "title" : "remove(_:)"
}
-->

# remove(_:)

Removes and returns the output value with the specified name.

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

## Parameters

`outputName`

The name of the output to remove.

## Return Value

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)