Delete useless libraries.