cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Re: How to remove/delete a collection?

Am I correct in understanding that you want to do is to drop the Collection (if I may use an SQLism), and you're being told how to delete rows within  the collection?

 

I'd also be very happy to know how to drop a Collection as well.

Regular Visitor

Re: How to remove/delete a collection?

To remove a collection from Power Apps you must clear the collection, this can be done via exiting or using Clear(CollectionName), you must then remove any references to it.

Once all the references to a collection have been removed the collection will disappear from your app.

I had collection stuck in an app once that was collecting images, I found that I had accidently placed a collect on the OnVisible property for a screen I had duplicated a few times, very annoying.

Highlighted
Advocate II
Advocate II

Re: How to remove/delete a collection?

Hi:

 

I left the suggestion below on the Ideas area of this site.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Command-to-explicitly-drop-a-collection-in-Power...

 

Please let me know your views; and if you approve of the general idea, feel free to vote it up.

--

Regards

P

Highlighted
Frequent Visitor

Re: How to remove/delete a collection?

Oh my god, this is so hilarious.  You have to be kidding me right?  You have to back your way out of any and all references to remove a collection?  No way to do it directly?  Unbelievable.  We shouldn't have to add this request to any wish list.  Who's running the developer crew for this app?

 

Not only that, but this relatively trivial request has gone over a year and a half without being addressed.  WOW!

Highlighted
Frequent Visitor

Re: How to remove/delete a collection?

There is no way to dynamically remove a collection like you would with a call to free() in C++ or DROP TABLE in SQL, so long as the reference is in the code, it stays.  The best you can do is to use the clear() function to at least shrink the memory footprint the app uses.  Granted, the memory restraints nowadays in cloud computing is quite minimal so I guess they figure, why bother with such a call.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,895)