Delete a .txt File from Mid Server Folder windows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 12:29 PM
Hi All,
We have a requirement where we want to delete a .txt file from a Mid-server folder.
I am new to this and not sure how that would work.
So for eg: if a file is saved in a folder location: '\DC', How can I delete the file from Servicenow?
I have looked in the community where it's done via Flow Designer but we don't have the activity which is required to access and delete the file.
Can anybody please help me with this?
Sincerely,
Xion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 01:05 PM
Hi @Xion ,
Refer this community thread for similar requirement.
Ideally, the same process/application should delete this file who actually creating this .txt on MID server, there should be some data operation/integration with other application which is creating this txt file. That application should delete before creating the new. If its one time activity, then you can delete directly from MID via login on local windows/linux host where this MID installed.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 01:14 PM - edited 12-10-2023 01:16 PM
Hi Ashish,
Thanks for your response but, As said I have already checked this post. But we don't have rest-activity, it requires some plugin which we don't have in our system.
And for the file, We are creating it via Business rule, using ECC Queue to So we place an attachment in ECC queue. From where it puts the file in the desired folder.
But not sure how to delete the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 01:28 PM
if it's regular activity then you can delete via MD-DOS command and schedule command via windows level schedule job or your can rename that tile using the MS-DOS command which will not impact your running business logic.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 01:32 PM
Hey Ashish,
We have limited access to the location/Mid Server.
Can we do it from servicenow like a script or something which can run Dos Command in the location where file is located?