In this Wednesday, Feb. 27, 2019 photo pug dog Edda is pictured in Duesseldorf, Germany. Officials in Germany are defending their decision to seize an indebted family's pet pug and sell it on eBay, saying the move was a last resort because authorities were unable to find anything else to take. (Mikko Schimmelfeder/dpa via AP)

In this Wednesday, Feb. 27, 2019 photo pug dog Edda is pictured in Duesseldorf, Germany. Officials in Germany are defending their decision to seize an indebted family's pet pug and sell it on eBay, saying the move was a last resort because authorities were unable to find anything else to take. (Mikko Schimmelfeder/dpa via AP)

BERLIN (AP) — Officials in Germany are defending their decision to seize an indebted family’s pet pug and sell it on eBay, saying the move was a last resort because authorities were unable to find anything else to take.

The incident in the western town of Ahlen prompted criticism on social media from people who felt the decision to take away the family’s beloved dog was heartless.

German news agency dpa on Thursday quoted Ahlen’s treasurer, Dirk Schlebes, as saying the seizure was legal and only happened after other nonessential household goods had been taken.

The family in question had allegedly failed to pay its debts to the town, including a dog tax. The pug, called Edda, was sold online for 750 euros ($854).