Rules Questions thread

Can your own unit attack a friendly building? Such as, you control a jail, and it’s holding a powerful creature of your opponent. Can you attack and destroy your own jail in order to force the opponent to discard the creature?