delete unused, init api with config