I haven't used the Templates much so take this with a grain of salt but it might be simpler to just do "delete system phone-home".
If you want to go the CLI Configlet route, you could also try this:
system {
delete:
phone-home;
}
------------------------------
PHILIP SILK
------------------------------
Original Message:
Sent: 04-21-2023 06:10
From: Pecco
Subject: How can i set delete config in junos space template
i want to delete phone home after i put config
delete system phone-home server https://redirect.juniper.net
delete system phone-home rfc-compliant
but it show invalid CLI
How can i set delete config in junos space template


------------------------------
Pecco Punk
------------------------------