How is caffeine eliminated from coffee beans?

While modern decaffeination methods are exceedingly effective and selective, they do have the potential to modify the coffee's flavor and aroma.

How is caffeine eliminated from coffee beans?
How are coffee beans processed to remove the caffeine? Photo by nousnou iwasaki / Unsplash