Allow support for other element types

Prune will work with Assets too and other types.