Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4xwrNGzIn/4iUtqHiNucaQ
Power Apps - Building Power Apps
Answered

Is there a function to clear all the variable, all the collection all at once in Power Apps?

Like (0) ShareShare
ReportReport
Posted on 23 Jul 2020 02:08:42 by

Hello Fellows,

 

I am developing a very complex canvas app, has many pages, variables and collections.

 

The thing is I am going to have a button at the last page, onSelect direct back to first page as a start over.

I know that I can use Concurrent() to write a big chuck of code to Reset|Clear|Set a bunch of components, but is there a easier way to just reinitialize the app?

 

Best Regards, 

Categories:
  • GaneshMaddipudi Profile Picture
    2 on 28 Dec 2023 at 03:08:52
    Re: Is there a function to clear all the variable, all the collection all at once in Power Apps?

    @CodeMorgan , it seems there is a way now using ClearData() function SaveData, LoadData, and ClearData functions - Power Platform | Microsoft Learn

  • CodeMorgan Profile Picture
    26 on 18 Jun 2023 at 17:47:27
    Re: Is there a function to clear all the variable, all the collection all at once in Power Apps?

    I want this too so I submitted it as an idea:
    https://ideas.powerapps.com/d365community/idea/fa1d6f0e-000e-ee11-a81c-000d3a0d5a36

    Please upvote. Thanks!

  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 23 Jul 2020 at 03:02:07
    Re: Is there a function to clear all the variable, all the collection all at once in Power Apps?

    @Anonymous 
    No, there is not an easier way to do it.


    You could make the user close and re-open the app if you don't want to do the work. đź¤Ł That's about all though.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started