removes files and deps not needed