Home
TeamSite
Deleting assets from multiple locations in single OD call
vinitsmore
Hi
Before talking about the problem, I want to tell you about our TS structure.
We have TS server as CMS and a web server for displaying contents on the website. While creating a DCR, assets are selected from Media bin and attached to the DCR. Once deployed, these assets are coiped to TS server and Web server.
While deleting DCR, I need to delete assets from TS server as well as from web server. I want to use OD for this.(OD call with multiple web servers)
Since OD call will be made from TS server and Assets to be deleted is also present on the TS server (ie same server.), Should I use OD call with multiple web servers in OD call or just delete files using rm command..
Is there any other way to achieve this.
Thanks
Vinit
Find more posts tagged with
Comments
nipper
OpenDeploy with DoDeletes="yes" will remove files from the receivers.
This is a common way of implementing OD. I tend to use a different workflow (a delete workflow) to protect everything. But you do not have to. Be certain that you use Filelist deployments.
Just really know what you are doing because DoDeletes can remove a whole lot of stuff you may not want deleted if you mess it up.
Adam Stoller
From what I can gather from your post - OD with doDeletes enabled should be perfectly fine for your needs.
You may need to consider whether you're using a filelist or directory comparison deployment, transactional (or non-transactional), etc. - but the basics of what you provided sound perfectly fine for OD.
This is, assuming that the files have been deleted within TeamSite before the deployment occurs. For that, rm, del, unlink(), etc may well be needed (e.g.: A user selects a file and then chooses Delete - you then have an automated process (workflow or otherwise) that notes the deleted file, scans the version of the file that's in staging to get a list of the associated assets (images, etc.), attaches those assets to the job (or whatever), deletes them in the workarea, and then proceeds to submit all the deletions on the TS server and deploy all the deletions to the web/app servers.
scatter2.png