<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API to delete expired certificates on venafi in Network Security Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421050#M949</link>
    <description>&lt;P&gt;Not sure which version you are using, but any supported version of Certificate Manager, Self Hosted has the Recycle Bin feature which can be configured to do exactly what you're looking for:  https://docs.venafi.com/Docs/24.1/TopNav/Content/Configuration/PlatformConfig/c-vcc-about-recycle-bin.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other than that you'll have to use the API to search for certs which expire in that window and iterate through them deleting them one at a time.&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 20:08:58 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-05-05T20:08:58Z</dc:date>
    <item>
      <title>API to delete expired certificates on venafi</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421049#M948</link>
      <description>Hi,I would like to delete the certificates which are expired prior 1/2 years. And want this to happen through APIAny inputs or suggestions on this?.</description>
      <pubDate>Tue, 31 May 2022 12:49:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421049#M948</guid>
      <dc:creator>Prithvi_Teja</dc:creator>
      <dc:date>2022-05-31T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: API to delete expired certificates on venafi</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421050#M949</link>
      <description>&lt;P&gt;Not sure which version you are using, but any supported version of Certificate Manager, Self Hosted has the Recycle Bin feature which can be configured to do exactly what you're looking for:  https://docs.venafi.com/Docs/24.1/TopNav/Content/Configuration/PlatformConfig/c-vcc-about-recycle-bin.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other than that you'll have to use the API to search for certs which expire in that window and iterate through them deleting them one at a time.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 20:08:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421050#M949</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-05-05T20:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: API to delete expired certificates on venafi</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421051#M950</link>
      <description>&lt;P&gt;As Dan said, you need to search for expired certs and then delete them. To find (expired) certs, the api is &lt;A alt="https://docs.venafi.com/Docs/currentAPI/#?route=get-/vedsdk/certificates" href="https://docs.venafi.com/Docs/currentAPI/#?route=get-/vedsdk/certificates" target="_blank"&gt;https://docs.venafi.com/Docs/currentAPI/#?route=get-/vedsdk/certificates&lt;/A&gt;. You will need to provide today's date to ValidToLess and the date from 6 months ago to ValidToGreater. To delete the certificate(s) you can use &lt;A alt="https://docs.venafi.com/Docs/currentAPI/#?route=delete-/vedsdk/certificates/-guid-" href="https://docs.venafi.com/Docs/currentAPI/#?route=delete-/vedsdk/certificates/-guid-" target="_blank"&gt;https://docs.venafi.com/Docs/currentAPI/#?route=delete-/vedsdk/certificates/-guid-&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are open to using powershell, you can use the &lt;A alt="https://github.com/Venafi/VenafiPS" href="https://github.com/Venafi/VenafiPS" target="_blank"&gt;VenafiPS&lt;/A&gt; powershell module to do this quite easily:&lt;/P&gt;&lt;CODE&gt;Find-VdcCertificate -ExpireAfter (get-date).AddMonths(-6) -ExpireBefore (get-date) | Remove-VdcCertificate&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 23:19:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/api-to-delete-expired-certificates-on-venafi/m-p/1421051#M950</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-05-05T23:19:56Z</dc:date>
    </item>
  </channel>
</rss>

