File Deletion from Application Server on ACC | Community
Skip to main content
davidh2892249
Level 5
August 2, 2021
Solved

File Deletion from Application Server on ACC

  • August 2, 2021
  • 2 replies
  • 2342 views

Hi All,

 

My understanding is that when files are loaded (whether that be from SFTP or from local machine) a copy of the file is stored on Adobe Campaign Classic's application server.

 

Is there a way for these files to be purged automatically (either instance wide after a period of time or through a setting in the import?)

 

We import data through both workflows (data loading activity) and through the traditional v4 import jobs.

In most cases, once the database updates are complete - we no longer need the file on the app server and would like them deleted to avoid capacity issues.

 

Thanks in advance

 

David

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by minakshis868318

Hi @davidh2892249 - Could you please refer this link if this works:

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/delete-server-files-at-usr-local-neolane-nl6-var/qaq-p/278279

 

But you to be little careful while changing the Javascript mentioned in the above link so that you should not delete the wrong files

 

2 replies

minakshis868318Accepted solution
Level 2
August 2, 2021

Hi @davidh2892249 - Could you please refer this link if this works:

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/delete-server-files-at-usr-local-neolane-nl6-var/qaq-p/278279

 

But you to be little careful while changing the Javascript mentioned in the above link so that you should not delete the wrong files

 

Level 2
August 2, 2021
Also you can try theough directly from FTP software like WINSCP/PUTTY. You can go to the respective folder and write unix commands to delete them if you have correct right on the folder/files
david--garcia
Level 10
August 3, 2021

If you are running Linux you can use the following script, you need to make sure you have the correct folder path

 

/* Define server folder path examples:
	/usr/local/neolane/nl6/var/<instance_name>
	/usr/local/neolane/nl6/var/res/<instance_name>
	/usr/local/neolane/nl6/var/<instance_name>/export/
*/

var strFolderPath = "/usr/local/neolane/nl6/var/res/";
var strPattern = "*.txt";
var objDirectory = new File(strFolderPath);
var objFiles = objDirectory.list(strPattern);
logInfo("No. of files that match search criteria are : " + objFiles.length); 


for each(var objFile in objFiles)
{
  logInfo(objFile.name);
  objFile.remove();
}

/* File patterns examples:

	"*.*" : all files.
	"*.txt" : all text files.
	"A*.*" : all files whose name start with A
	"A*z.*" : all files whose name start with A and ends with Z.

*/

 Someone wrote a nice guide here also : https://bit.ly/2WNOor4