function clearSheets() {
let NumSheets = getActiveSheet().getNumSheets()
let totalNum = 6
for (let a = 2; a <= totalNum ;a++) {
for (let i = 0; i < NumSheets; i++) {
if (getActiveSheet().getSheets()[i].getSheetName().toString().includes(`Метка ${a}`)) {
let sheets = getActiveSheet().getSheets();
getActiveSheet().deleteSheet(sheets[i]);
NumSheets = getActiveSheet().getNumSheets()
}
}
}
}