Hi,
Is it possible to delete a user (given its asset ID) using a command line script?
Having had a quick look at the remove_asset_type.php script, I believe the answer is yes. However the script looks like it only deletes the rows from the various tables. Would deleting a user in that way cause any problems especially in regards to Rollback?
PS: I know the script mentioned above doesn't do that but the method should be the same that's why I mentioned it.
Its possible to delete any type of asset, but there isn't a CLI script for it yet. Remember that assets can have children, so we can't just erase the database entries for a single asset. We have to take a look at all the links involved and remove them intelligently. 
[quote]Its possible to delete any type of asset, but there isn’t a CLI script for it yet.
[right][post=“9378”]<{POST_SNAPBACK}>[/post][/right][/quote]
Avi, we have a script on our system that removes assets by type and status from a parent. It is so we can removed multiple archived items of a particular type (in our case expired audio assets). It removes them rather than going via the trash.
It could probably be tweaked to do just one one asset by ID - you are welcome to grab it and pass it on. It is [siteroot]/packages/radio_nz/scripts/trash_assets.php on our server.
cheers,
Richard
We'll have a copy in our code repository. You can see I'm not completely aware of all the custom development being done. 
[quote]We’ll have a copy in our code repository. You can see I’m not completely aware of all the custom development being done. 
[right][post=“9383”]<{POST_SNAPBACK}>[/post][/right][/quote]
Yes, that was why I mentioned it!
We have some other cool scripts for making What’s new assets on a daily basis, just in case any one needs them.
cheers,
R
Also, they are custom assets/scripts, so I don't have permission to distribute them unless the client agrees. This is another reason why I sometimes don't mention things. 
And this is a good way to start a new board for custom packages/scripts so that we (the users/clients) can share this kind of stuff.
I belive I'm not the only one who would like this.
We are considering it, but at this point we are not opening a code exchange yet.
[quote]We are considering it, but at this point we are not opening a code exchange yet.
[right][post=“9404”]<{POST_SNAPBACK}>[/post][/right][/quote]
I would also put my two cents in and see that this would be a valid resource for the MySource Community… I think it could be beneficial for all if there was some board/forum of some sort, as this would cut down on duplication of custom assets, where someone else might already be doing something that someone else might need. :D’ /> <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/laugh.gif’ class=‘bbc_emoticon’ alt=’:lol:
Yepp… but, Squiz earn more on not doing this…
[quote]Yepp… but, Squiz earn more on not doing this…
[right][post=“9412”]<{POST_SNAPBACK}>[/post][/right][/quote]
Yeah I know that also, and I have to say that from where I am I am happy with the support that Squiz guys are providing, especially the guys on these forums, I think they are doing a great job at keeping their customers happy 
I'm 100% with you.
[quote]I’m 100% with you.
[right][post=“9414”]<{POST_SNAPBACK}>[/post][/right][/quote]
I mean the option is that, if they do make something available, make only available to members of the client forums, people who have piad for support, upgrades etc. which I think would still make it fair for everyone involved 