tell application "Finder"
activate
tell window 1 -- clears out Finder idiosyncrasies
tell application "Finder" -- used here and at end
set winTarget to target of front window as alias
end tell
set fileList to list folder winTarget with invisibles
try
if fileList contains ".DS_Store" then
delete item ".DS_Store"
end if
end try
end tell
end tell