start here: https://huggingface.co/blog/mlabonne/abliteration
Note that this describes an older, currently pretty much obsolete technique which does lobotomize the model somewhat.