As
@Dannydet posted, you need to flash the appropriate stock Samsung ROM to return your phone back to its original unrooted state.
When you rooted your phone, that was a fundamental change to the installed Android operating system. In order to go back to unrooted, you have to replace that altered, rooted operating system with a stock, clean, unrooted operating system. With Samsung phones, flashing a stock ROM will also install a stock Samsung Recovery.
Be sure to choose a ROM to download that exactly matches your specific model of A30. ROMs are not interchangeable, they are very device specific.
On the download page of the ROM you do select, there are instructions on how to use the Odin utility to do the flashing process. Read them and follow them, don't take shortcuts or make assumptions. It's not necessarily a difficult process but it does require specific steps to be taken in sequence.