Question
LrCollectionSet:delete() has no effect
Hello,
I am trying to delete collection set programmatically. For this I've wrote this kind of code in LUA:
local collectionSets = scatalog:getChildCollectionSets()
for i = 1, #collectionSets do
if (collectionSets[i]:getName() == properties[_parent]) then
catalog:withWriteAccessDo('Move project collections to new parent', function()
collectionSets[i]:delete()
end)
end
endBut this hasn't any effect, the collection set still existing.
What do I wrong? Or is this not supported?
Thorsten