Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
File not being deleted from workarea
System
Hi,
I am working on a custom delete menu item which kicks off a workflow if the selected files are in Staging to delete the files from the Production server using file list deployment. This is incorporated to avoid the mass deletions we had , on two separate instances.When an approver approvers the work and an external task is called to delete the files, instead of deleting the files, the locking permissions are being changed and the file is not being deleted
Can someone please explain me why this is happening??
Thanks,
Alfred
Find more posts tagged with
Comments
Migrateduser
You should attach your script so people can help you. Your description of the problem is not enough information.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Migrateduser
ok Smitty , I am attaching the delete.ipl script which deletes the files from the WORKAREA.Please check and lemme know if u would need the wft file too
Migrateduser
This code. although not very clean, seems like it should at least delete the files, assuming the user executing the script has the permissions to delete the files. Is the person running this script allowed to delete the files in question? Does your debug info look correct? What are the permissions on the files you are trying to delete?
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Adam Stoller
Also - you might want to check the return value from the unlink() call to make sure it is deleting the number of files you asked it to.
I could suggest several coding improvements - but I think it would be better to look at your debug output (perhaps after you start tracking the return code from unlink()) before bothering to do a critique.
--fish
(Interwoven Senior Technical Consultant)