[BUG #7810] remove unneeded dirs and files