I used to use something called Flush to get rid of Flash cookies. I just looked at the script and it is thus:

tell application "Terminal"
activate
do script "ls -R ~/Library/Preferences/Macromedia/Flash*Player | grep -v settings | grep -v preferences | grep .sol | cat -n"
display dialog "Welcome to Flush 3.1. Do you want to flush these flash cookies into your Trash now?" buttons {"Not Now", "Flush Away!"} default button 2
if button returned of result = "Flush Away!" then
set fileToDelete to (((path to preferences folder) as text) & "Macromedia:Flash Player") as alias
tell application "Finder"
delete fileToDelete
end tell
end if
quit
end tell


Mid 2010 MacBook Pro 13"
2.4GHz, 750GB SATA HD, 8 GB RAM, OS 10.7.5
1 HDX1500 2TB Ext.HD, 2 HDX1500 1TB Ext.HD
HP Laserjet 6MP printing postscript via 10/100 Intel print server
Netgear WN2500RP Range Extender (Ira rocks!)
Linksys WRT1900AC Wireless Router
Brother MFC-9340CDW Color Laser
iPad Air