At any time before judgment the court may permit the plea of guilty or guilty but mentally ill, to be withdrawn and a plea of not guilty substituted.
If the court rejects the plea agreement, the court shall, on the record, inform the parties of this fact, advise the defendant personally in open court or, on a showing of good cause in camera, that the court is not bound by the plea agreement, afford the defendant the opportunity to then withdraw the plea, and advise the defendant that if the defendant persists in that guilty plea the disposition of the case may be less favorable to the defendant than that contemplated by the plea agreement.
The court can defer accepting or rejecting the plea agreement until there has been an opportunity to consider the presentence report.
Ky. R. Crim. P. RCr 8.10