If plaintiff in an action as to which a notice of lis pendens has been filed as herein required fails to prosecute the same diligently, the court wherein the action is pending may, for such cause or for other good cause shown, by order direct the county clerk or register of deeds and mortgages, as the case may be, to discharge the lis pendens of record.
N.J.S. § 2A:15-10