(firewall help) I deleted temp files

I installed comodo firewall and defense+ a few weeks ago.
Today I did a disk cleanup of C: and deleted temp files and temp internet files.
Is that fine? I did all this while the firewall and defense+ turned on.
(P.S. I read somewhere that I shouldnt delete em with firewall turned on)
This may seem like a silly question.
But please answer.

It’s fine, system won’t let you delete files that are currently in use by windows itself or any running program including CIS, so it’s fine. You may want to use “Purge” button in the rules list and trusted \ unrecognized lists to remove entries that no longer exists.