The owner of an object doesn't necessarily have authority to do anything with it (except change authority). You have to both take ownership and grant authority - it was the second step you were missing.
As they are directories you should specify /r on takeown and /t on icacls to recurse through any contained files/directories also.
takeown /f quifad9.tmp /r
icacls quifad9.tmp /grant "%USERDOMAIN%\%USERNAME%":(F) /t
If they are locked though you'll need to delete them from outside windows (or at least when whatever is locking them isn't running) as mentioned in the posts above.