Hey Respected Koders…,
I’m Trying To Delete First’ 100 Tags When Something Event Happen
Help Me To Delete First’ 100 Tags Of Project Bucket
Hey Respected Koders…,
I’m Trying To Delete First’ 100 Tags When Something Event Happen
Help Me To Delete First’ 100 Tags Of Project Bucket
First get all the tag of that bucket by using GetAllTagList block then insert the value in a list. Then use a for each number loop block from 1 to 100 and use the Firebase’s ClearTag block give the tag by using select list item block (list = tag list and index=get number). And your first 100 tags will be deleted.
@Mr.Arshad.In , here are my blocks
I haven’t tried these blocks but it will work…
Beforehand, make sure the list is greater than or equal to 100.
Yes this is happening cause when you add new tags in firebase it is sorted out in ascending order. (Only in firebase database) but when you call tag list then it is not sorted out in ascending order. Maybe try to sort list tag list prior and then delete the first 100
yes in firebase but what about app ?
OK, I have an idea for you.
The “target” variable can be changed to whatever number you want, and it will delete every tag below that number, but also including that number.
This idea makes sure that even if the tags aren’t stored in order from the application, it will still work.
Just to interest you some more, the amount of blocks that my idea uses is less than using the extension!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.