You can use the Pathname methods for this:

```ruby
(share/'applications').unlink
```