Removing a bifold closet door from its tracks is pretty straight forward. Moving the outside door first, centre the door and carefully lift the door up and off its track.
Once lifted, tilt the door towards you and pull at the bottom of the door. This will remove the door from the top track.
Follow the same steps when removing the second closet door.
If you want to completely remove the track, you should be able to do so by using a screwdriver or drill to remove the screws.