ยง 1348. Undertaking for cancellation of notice of pendency. The court, upon motion of any person aggrieved and upon such notice of pendency as it may require, may direct any county clerk to cancel a notice of pendency, upon such terms as are just, whether or not the judgment demanded would affect specific real property, if the moving party shall give an undertaking in an amount to be fixed by the court, and if the court finds that adequate relief can be secured to the claiming authority by the giving of such an undertaking.