Do something to everything in folder

imagine we have a folder with parts called 1,2,3.4.5.6,7,8 and 9.

how would i destroy every part except the highest one? (9)

remember: 9 can be anything, even 1000 or 10000

If I do it thinking quickly, it would be;

local Carpeta = workspace.Carpeta
local Actual = {
Indexado = "";
Valor = 0}
for i , V in pairs(Carpeta:GetChildrens) do 
 if  V.Name > Actual.Valor then
Actual.Indexado = V
Actual.Valor = V.Name
end
Actual.Indexado:Destroy()
Actual.Indexado = ""
Actual.Valor = 0
end

its not getchildrens!!! its getchildren!

local Folder = workspace.Folder
local Parts = Folder:GetChildren()

table.sort(Parts, function(A, B)
return tonumber(A.Name) > tonumber(B.Name)
end)

for Index, Part in Parts do
if Index ~= #Parts then
Part:Destroy()
end
end

DIDNT WORK… sadly… i dont know whats wrong