Hi @k452,
I already provided the solution for your same topic.
If not work then apply it.
frappe.ui.form.on("DocType", {
refresh: function (frm) {
setTimeout(() => {
$('.timeline-items').hide();
}, 10);
}
});
Please set your doctype name in the script.