cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AllanMartins
Level: Powered On

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
Brank
Level 8

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

12 REPLIES 12
hpkeong
Level 10

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
AllanMartins
Level: Powered On

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?

 

hpkeong
Level 10

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
Community Support Team
Community Support Team

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.
hpkeong
Level 10

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
Brank
Level 8

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

AllanMartins
Level: Powered On

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!

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?

JustAnotherUser
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,241)