Add helper function for cleaning up examples directory

Change-Id: I4d452d370a624c18ed8b201a65e138a357f5d14c
Reviewed-by: Matti Paaso <matti.paaso@digia.com>