Fix some warnings:

"delete" is a keyword, remove trailing whitespace, add missing semicolon.