Remove sources and only keep the required files