remove leave config