Bi fold door pivot removals
I assume you're dealing with standard hardware inserts, as shown in the bottom row here. Simply grasp the shaft below the end device with a pliers and tap on the pliers with a hammer. It should pop out. 



If you're not dealing with this type of hardware, please update your question with adequate information and/or photos.