---
title: removeAllImages()
framework: social
role: symbol
role_heading: Instance Method
path: social/slcomposeviewcontroller/removeallimages()
---

# removeAllImages()

Removes all images from the post.

## Declaration

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

## Return Value

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

## Discussion

Discussion If the view controller has already been presented to the user when removeAllImages() is called, the method returns false and the images are not removed.

## See Also

### Specifying the Contents of the Post

- [setInitialText(_:)](social/slcomposeviewcontroller/setinitialtext(_:).md)
- [add(_:)](social/slcomposeviewcontroller/add(_:)-1z68a.md)
- [add(_:)](social/slcomposeviewcontroller/add(_:)-3mn1w.md)
- [removeAllURLs()](social/slcomposeviewcontroller/removeallurls().md)
