Rename method name delete(reserved word) and add missing semicolons