What authority does the court have regarding the refund of bail or relieving the bail bondsman of their undertaking?  
The court has the power to decide whether to refund the entire amount of bail or only a portion of it. Additionally, the court can relieve the bail bondsman from their responsibilities.