2021? How/when did you try to file it and it rejected? You can only efile a 2022 return this year in 2023. If it was the same return submitted twice last year don't delete it. It is still your actual return.
Or did you enter your 2021 info into the 2022 version? Then it's good it rejected. You can try to clear it or change it to be for 2022.
So what happened? It seems late to be asking about 2021.