Detoxification by using acid or alkaline reagents