Código Delphi [-]if TreeView1.Selected <> nil then TreeView1.Selected.Delete;
if TreeView1.Selected <> nil then TreeView1.Selected.Delete;