Removes and compacts files