web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is generating random S...
Power Apps
Answered

Is generating random SaveData names safe for my phone?

(0) ShareShare
ReportReport
Posted on by 266

Hi, I am working on offline functionalities in my app, and I would like the photos to be stored offline and then send them through Outlook. I am surprised but everything seems to work fine, however, I have some worries regarding these photos:

To store offline and match the correct photo with the correct 'task' when offline, I use SaveData(Photos, TaskVariable1 & LocationVariable2) and then I load the data by using the same variables when necessary. I am worried that the user will have thousands of photos stored internally after using the app for some time.

Maybe I understand PowerApps wrongly, but I just would like to know the following things:
1.  Are the collections of photos stored in the device for an infinite amount of time if I do not clear them?
If yes, then:
2. Will the' Clear Cache' button clear all the collections? 
3. Can I put some buttons in PowerApps clear cache?

Thank you,

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,599 Most Valuable Professional on at

    1) SaveData will store the data until you delete it.

    2) The Clear Cache button is a Power Apps portal concept and has nothing to do with an offline app in Power Apps.

    3) See #2. To clear the data Saved with SaveData you will need to do another SaveData with the same name and an empty amount of data.

     

    I'm not sure this is really the functionality that you are looking for.  Here are some limitations

    • Doesn't work in the design studio or web browser
    • Limited local memory available (usually 30-70 MB)  so you won't be able to store thousands of photos
  • pal95 Profile Picture
    266 on at

    1) Yes, but how to delete the data if I do not know the data name? 

    I do not want to store thousands of photos (the concept is to store around 10, maybe 20 photos), I am just afraid of being unable to delete the growing amount of photos.

    3) So basically, if I put that clearing formula after sending the email, it will guarantee that I will not have unnecessary photos in my storage?

  • Verified answer
    Pstork1 Profile Picture
    69,599 Most Valuable Professional on at

    1) I don't think there is a way to delete the data if you don't know the collection name it was saved under.  At that point your only choice would be to uninstall the app on the device and re-install it.  I'm not aware of another way.

     

    I would create another collection to be saved locally that has the names of the SaveData collections in it.  That way you could implement something that would delete all the saveData collections by reading them out of that collection.  If you are just using it to cache them until you send an email then yes I would clear them after the email is sent.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard