{"id":335,"date":"2026-06-23T19:15:03","date_gmt":"2026-06-23T19:15:03","guid":{"rendered":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/"},"modified":"2026-07-03T13:48:00","modified_gmt":"2026-07-03T13:48:00","slug":"document-expiry","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/fr\/docs\/document-expiry\/","title":{"rendered":"Programmer l\u2019expiration et la suppression automatique des documents"},"content":{"rendered":"<p>Document expiry lets you give any file an end date, so it disappears from your library automatically once that date passes. This is handy for time-limited offers, dated price lists, or paperwork that should only be available for a set window. Expiry is an <a href=\"https:\/\/documentlibrary.pro\/fr\/pricing\/\">Advanced plan<\/a> .<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg\" alt=\"Setting an expiry date and time when adding a document to the library\"\/><\/p>\n<h2 id=\"setting-an-expiry-date\">Setting an expiry date<\/h2>\n<p>Open the document on the Add Document screen in your hosted dashboard and choose the date you want it to expire. When that date arrives, the document is switched to a private status and stops showing in your library, so visitors can no longer see or download it.<\/p>\n<h2 id=\"what-counts-as-expired\">What counts as expired<\/h2>\n<p>Expiry hides documents that are part of your normal published library. If you have set a library to also include documents with other statuses, that choice affects whether an expired item is still visible. In most cases you will be showing published documents only, and expired files drop out of view as soon as their date passes.<\/p>","protected":false},"excerpt":{"rendered":"<p>Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.<\/p>","protected":false},"menu_order":0,"template":"","meta":{"footnotes":""},"doc_category":[8],"class_list":["post-335","doc","type-doc","status-publish","hentry","doc_category-managing-documents"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set documents to expire and remove them automatically<\/title>\n<meta name=\"description\" content=\"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/documentlibrary.pro\/fr\/docs\/document-expiry\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set documents to expire and remove them automatically\" \/>\n<meta property=\"og:description\" content=\"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/fr\/docs\/document-expiry\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T13:48:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/\",\"name\":\"Set documents to expire and remove them automatically\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/add-document-to-online-library.jpg\",\"datePublished\":\"2026-06-23T19:15:03+00:00\",\"dateModified\":\"2026-07-03T13:48:00+00:00\",\"description\":\"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/#primaryimage\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/add-document-to-online-library.jpg\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/add-document-to-online-library.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-expiry\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Set documents to expire and remove them automatically\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"name\":\"Document Library Pro\",\"description\":\"Searchable document libraries for any website\",\"publisher\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/documentlibrary.pro\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Document Library Pro\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"description\":\"Document Library Pro is hosted document library software that lets you publish searchable, filterable libraries of PDFs, documents and resources on any website or platform.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Programmer l\u2019expiration et la suppression automatique des documents","description":"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/documentlibrary.pro\/fr\/docs\/document-expiry\/","og_locale":"fr_FR","og_type":"article","og_title":"Set documents to expire and remove them automatically","og_description":"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.","og_url":"https:\/\/documentlibrary.pro\/fr\/docs\/document-expiry\/","og_site_name":"Document Library Pro","article_modified_time":"2026-07-03T13:48:00+00:00","og_image":[{"url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/","url":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/","name":"Programmer l\u2019expiration et la suppression automatique des documents","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/#primaryimage"},"image":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/#primaryimage"},"thumbnailUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg","datePublished":"2026-06-23T19:15:03+00:00","dateModified":"2026-07-03T13:48:00+00:00","description":"Give a document an expiry date so it leaves your hosted library automatically. Available on the Advanced plan.","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/document-expiry\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/#primaryimage","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/add-document-to-online-library.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/document-expiry\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/documentlibrary.pro\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/documentlibrary.pro\/docs\/"},{"@type":"ListItem","position":3,"name":"Set documents to expire and remove them automatically"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Biblioth\u00e8ques de documents consultables pour tout site web","publisher":{"@id":"https:\/\/documentlibrary.pro\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/documentlibrary.pro\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","width":512,"height":512,"caption":"Document Library Pro"},"image":{"@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/"},"description":"Document Library Pro est un logiciel de biblioth\u00e8que de documents h\u00e9berg\u00e9 qui vous permet de publier des biblioth\u00e8ques consultables et filtrables de PDF, de documents et de ressources sur tout site web ou plateforme."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":1,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/335\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc\/335\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/fr\/wp-json\/wp\/v2\/doc_category?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}