Share via

use file and delete

arkiboys 9,706 Reputation points
Jan 28, 2022, 9:57 AM

Hello,
How is it possible to read a file and then delete it?
At present I am using a copy activity to get the file name but I do not want to put the file anywhere and so no need for the sink to be set (But sink tab is required in copy activity)
Then I know to use the delete activity but not sure what o do with the sink of the copy activity?
Thank you

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,426 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 34,866 Reputation points MVP
    Jan 28, 2022, 10:50 AM

    Hey,
    You can use a get meta data activity to get the filename and its details.
    And then use Delete activity to delete that file.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.