Give the public link of a file or folder an expiration date a number of days from today: its details ("Customize link"), "Set expiration date", the date, "Update share".
Examples
When I set the public link of "team-photo.png" to expire in 30 days
When I set the public link of "Project files" to expire in 7 days
When we set the public link of "meeting-notes.md" to expire in 30 days
And I set the public link of "annual-report.pdf" to expire in 1 day
When I set the public link of "budget.txt" to expire in 14 days
Pattern
When(/^(?:I|we) set the public link of "([^"]*)" to expire in (\d+) days?$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.