removal of shelf stud

Is there a trick to getting the shelf studs out to allow replacement?