I want to delete old version (0.5) and keep latest version (0.10) from a library.
How can I achieve it using PowerShell Script.
If(0.5 < 0.10)
{
Remove version with 0.5 and keep 0.10
But I doubt system takes 0.5 as 0.50 then the logic is not correct.
}
How can I get latest/current version number and delete older version?