This question is a little different than one about peptide chemistry. In peptide chemistry, the carbamate protecting group are designed for easier removal with unwanted cleavage or racemization reactions taking place. In this case, I suggest the use of acid or base can selectively remove the blocking groups, but with varying degrees of selectivity or other side reactions.