<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeViewController/removeAllImages()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:objc(cs)SLComposeViewController(im)removeAllImages"
  },
  "title" : "removeAllImages()"
}
-->

# removeAllImages()

Removes all images from the post.

```
func removeAllImages() -> Bool
```

## Return Value

Returns a Boolean value that indicates whether the images were successfully removed.

## Discussion

If the view controller has already been presented to the user when [`removeAllImages()`](/documentation/Social/SLComposeViewController/removeAllImages()) is called, the method returns <doc://com.apple.documentation/documentation/Swift/false> and the images are not removed.

---

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)