Peeves wasn’t really meant to be cut out. He was actually played by Rik Mayall, but was scrapped during editing because of his inconsequence to the plot, and to save time. We don’t know for sure that, that is the reason behind his cut role, but Rick Mayall did mention how his jokes caused distractions on set, with him causing the child actors to break character every time cameras rolled. He also told that he didn’t know that after him filming the scenes for three weeks why the studio cut his scene without information, he only found out when that his role had been cut after the movie was released.