delete old matrix library