cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to remove/delete a collection?

I have created a temporary collection that I no longer need. How can I remove it?

 

Clear/ClearCollect/RemoveIf only removes the records from it. I would like to actually delete the collection.

 

thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Re: How to remove/delete a collection?

Clear function should work for you for delete all records in the collection and no just one.

 

Something like this: Clear(Collection1)

 

You can use it in a "OnClick" property of a button or on "OnVisible" property of a screen.

 

Regards,

View solution in original post

15 REPLIES 15
Highlighted
Community Champion
Community Champion

Re: How to remove/delete a collection?

Hi

 

When you close the apps, the Collection will disappear. (Please click on Content.Collection confirm).

Meantime, please remove the formula with the related Collection DS Name.

 

Hope this helps,

hpkeong
Highlighted
Helper III
Helper III

Re: How to remove/delete a collection?

Thank you for you response, I closed the app, and the collection remain. I went all the objects and removed any reference and still keep the collection.

 

I used the Find (Ctrl + F) to identify anything with the Collection name, and there is nothing there associated with this collection.

 

Any other way to delete it?

 

Highlighted
Community Champion
Community Champion

Re: How to remove/delete a collection?

Hi

 

Sorry for late reply.

May you als try to Sign-out and Sign-in again and see what happened?

Collection is a temporary datasource.

 

Please check again. TQ

hpkeong
Highlighted
Community Support
Community Support

Re: How to remove/delete a collection?

Hi Allan,

 

Like @hpkeong mentioned, collections should be deleted as you close the current app. I suggest that in PowerApps desktop studio, you can open another app which will make sure that this app is closed. And then try to open this app again, see if this will delete the collection.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Champion
Community Champion

Re: How to remove/delete a collection?

Hi

Addtional point as mentioned by @v-monli-msft, close the apps totally.
File.Close...close selection is located at left bottom.

Tq
hpkeong
Highlighted
Advocate III
Advocate III

Re: How to remove/delete a collection?

Clear function should work for you for delete all records in the collection and no just one.

 

Something like this: Clear(Collection1)

 

You can use it in a "OnClick" property of a button or on "OnVisible" property of a screen.

 

Regards,

View solution in original post

Highlighted
Helper III
Helper III

Re: How to remove/delete a collection?

I had one button (I used for testing, and I Left it Hidden...) that had reference to that Collection, simply by deleting it, it solved the problem! thanks a lot!

Highlighted
Anonymous
Not applicable

Re: How to remove/delete a collection?

I dont Want My collection to be deleted even after i closed the app . Can anyone help me with this?

Highlighted
Frequent Visitor

Re: How to remove/delete a collection?

If you want data to persist between application runs I think you need SaveData/LoadData.

Helpful resources

Announcements
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,542)