Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
quyendang
New Member

Delete activity failed for deleting files via on-premises

As the tittle suggested, delete activity failed when I tried to delete files in a Folder type data gateway connected to an on-premises data gateway. Copy activity using the same data gateway works just fine.

 

The error is: "Failed to execute delete activity with data source 'FileServer' and error 'Error occurred when trying to access the file in Folder 'E:\[FolderName]\[FileName].txt', File filter: ''.
The directory name is invalid.
'. For details, please reference log file here: ."

 

Feels like it is something very specific with delete activity in Fabric. Anyone has the same issue?

3 REPLIES 3
v-prasare
Community Support
Community Support

Hi @quyendang,

 We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are

v-prasare
Community Support
Community Support

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

@suparnababu8, Thanks for your prompt response

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are

suparnababu8
Super User
Super User

Hi @quyendang 

 

You can give the folder path without metioning the E. for example insted of using the E:\[FolderName]\[FileName].txt', File filter:

 

You may use [FolderName]\[FileName].txt and it may work.

 

If you havn't refered this, Please refer this thread azure - ADF Delete Activity not deleting Folders - Stack Overflow It may helps you.

 

Please let me if it works.

 

Thank you!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.