Re-implementing mapping deletion function.