---
title: removeAllURLs()
framework: social
role: symbol
role_heading: Instance Method
path: social/slcomposeviewcontroller/removeallurls()
---

# removeAllURLs()

Removes all URLs from the post.

## Declaration

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

## Return Value

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

## Discussion

Discussion If the view controller has already been presented to the user when removeAllURLs() is called, the method returns false and the URLS 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)
- [removeAllImages()](social/slcomposeviewcontroller/removeallimages().md)
