Bitcoin core node is not starting after -prune is applied in bitcoin.config file

I have a bitcoin core full node version 0.17.1 running on my machine. I want to enable prune on the node to save space on the disk. When I apply -prune=15000 in bitcoin.config file and restart bitcoin core GUI, it shows -txindex is incompatible with prune. So I want to start my node with prune enabled. Is there any way for that?