Using arduino board like programmer for another atmega

Hello ,is there possible to replace atmega with arduino bootloader to "clean" atmega 328P on board and program it with avr studio in C? I checked this tutorial - Contact | Jaycon Systems but i must have arduino bootloader on atmega.

Thanks :slight_smile: