Add UI support for emptying collections.

Fixes #107