Allow purging multiple objects from category index table.

Fixes owncloud/apps#579