I believe this may run afoul of some data retention regulations. E.g. GDPR requires a minimum of data to be retained: https://www.dpnetwork.org.uk/gdpr-data-retention-guide/
As long as you have an active user account on Flickr the contract / terms of use apply with regard to retention of photos, which Flickr can probably change as per their previous ToS that you accepted when signing up.