Remove deleted versions from the cache

Since the cache updater doesn't work outside the users home directory for now (see https://github.com/owncloud/core/issues/9496) we need to do it manually

Fixes #9496

cc @PVince81 @DeepDiver1975 @schiesbn