am trying to delete the custom timer job I have created in my SP 2013 on-prem.env. I used the powershell to do the same,but its not getting deleted/removed from the central admin. I tried with restarting the sp timer service and sp admin service and iisreset as well. refer : Delete-SPTimer-JOB-link But still, am able to see the timer job in the timerjob definitions page.
add-pssnapin "microsoft.sharepoint.powershell"
Get-SPTimerJob | where {$_.name -like "NPD Timer Job"} |fl
$badjobTake2 = Get-SPTimerJob -ID "55166609-014a-4c0c-bd1b-
e7cac0585dcd"
$badjobTake2.Delete()
Is there anyway, I can completely remove the timerjob ref from the ContentDB as well? it seems , somewhere the timerjob name is mentioned in Config DB or webappln DB.
note: I have renamed the customer job from a old name to new name. is this not allowed? Will this cause an issue when re-deploying onto the same farm?