Avoid running "kill -6 <PID>" and instead use "kill <PID>" or "kill -9 <PID>" which would restart the processes without generating a core-dump:
Example with "kill -9 <PID>":{master}labroot@jtac-mx104-r2606-re0> show system processes extensive | match craft 25609 root 40 0 22916K 12020K select 0:01 0.00% craftd{master}labroot@jtac-mx104-r2606-re0> start shell user root Password:root@jtac-mx104-r2606-re0% kill -9 25609root@jtac-mx104-r2606-re0% cli{master}labroot@jtac-mx104-r2606-re0>labroot@jtac-mx104-r2606-re0> show system core-dumps /var/crash/*core*: No such file or directory/var/tmp/*core*: No such file or directory/var/tmp/pics/*core*: No such file or directory/var/crash/kernel.*: No such file or directory/var/jails/rest-api/tmp/*core*: No such file or directory/tftpboot/corefiles/*core*: No such file or directory/jail/var/tmp/*core*: No such file or directoryExample with "kill <PID>":labroot@jtac-mx104-r2606-re0> show system processes extensive | match craft 28806 root 40 0 22916K 12024K select 0:00 0.00% craftdlabroot@jtac-mx104-r2606-re0> start shell user rootroot@jtac-mx104-r2606-re0% kill 28806root@jtac-mx104-r2606-re0% clilabroot@jtac-mx104-r2606-re0> show system core-dumps /var/crash/*core*: No such file or directory/var/tmp/*core*: No such file or directory/var/tmp/pics/*core*: No such file or directory/var/crash/kernel.*: No such file or directory/var/jails/rest-api/tmp/*core*: No such file or directory/tftpboot/corefiles/*core*: No such file or directory/jail/var/tmp/*core*: No such file or directory
Or
Secondly, we can use RE cli " request system process terminate process-id" to terminate the process.
https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/command/request-system-process-terminate.html