select split(content, '/', 2) from cr_revisions where revision_id in (select live_revision from fs_files) group by split(content, '/', 2);
I then removed folders not in content-repository-content-files not belonging that set.
What could have caused this behaviour?