Deleting unneeded files from installation

Can anyone tell me what unnecessary files I can remove in order to trim down the installation and improve security.

For starters, are all the files in the /misc directory actually needed or can I delete them?

There’s scripts in there talking about generating hundreds of visits that surely aren’t great to leave hanging about.

Cheers.

all scripts that “do stuff” are of course protected and will not affect your piwik.