Clear unused settings and add API UI