an attemt to remove dependencies too (if specified)