With this WooCommerce product attachment plugin, you can enable ‘set date expires’ option and enter the expiry date. If a customer places order after this date, then the attachment will no longer be visible for download.