<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/PaperMarkup/removeContentUnsupported(by:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit0A6MarkupV24removeContentUnsupported2byyAA10FeatureSetV_tF"
  },
  "title" : "removeContentUnsupported(by:)"
}
-->

# removeContentUnsupported(by:)

Remove all contents that is not supported by the provided feature set.

```
mutating func removeContentUnsupported(by featureSet: FeatureSet)
```

## Parameters

`featureSet`

The feature set to limit this data model to.

## Discussion

After calling this method `featureSet.isSubset(of: features)` will be `true`.

---

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)