Delete Excel workbook

Hi Friends

I have a small query regarding excel application.

How to Delete Particular Excel workbook???

Regards,
Raman

Use the Delete File activity and specify the path of the workbook. Keep in mind that if the file cannot be deleted, the activity will fail (e.g. if the bot does not have access to the file or if someone has the file open).

1 Like

Hi Anthony,

Thanks for the quick reply, I have lot excel files in a folder , I want to delete particular excel only.

Do you have any sample?

Regards,
Raman

I don’t, but if you have a specific file to delete, you need to give the full path of the specific file, and it will be deleted. This will not delete the other files.

Example: The path could be something like "C:\Users\anthony.humphries\Documents\UiPath\ExcelFiles\DeleteMe.xlsx".

1 Like

Wow.Its Working .

Thank u so much.

Raman.