Deleting Spam user accounts

Is there a way to delete hundreds of Guest User spam accounts? Or do we have to manually delete each user? What added security measures can we install to prevent this from happening in the future? Thanks!