Minecraft wiki entry for Defeating_a_pillager_outpost, associated text: Turn your difficulty into peaceful to get rid of all pillagers, but without gaining any drops or experience, and raids are not possible in Peaceful mode.