Multiple Documents created ,can check Version Document and delete it in codebase

I have created one document in hippo CMS and saved as A and it shows version 1 , and again edited
A and saved it and it shows version 2 . do you have any version compare hippo CMS API or any API two compare these documents ?
any help please !

There is no API as such, but in the document view you can select “Document” -> show revision history. Note that revisions are made on publish.