Ask Your Question

delete a file on disk using libre office macro [closed]

asked 2013-08-14 13:57:51 +0100

Vineet gravatar image

updated 2020-08-05 23:48:07 +0100

Alex Kemp gravatar image

I am opening a csv file in using LibreOffice Calc and processing the data in it.
This csv file is periodically auto-generated on the disk by another application.
I wish to delete this csv file from disk after opening & processing the data is finished.
How to do it using macro? (either python or vba or else). (The macro can be assigned to a button for single-click operation).



edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-07 02:21:03.350185

1 Answer

Sort by » oldest newest most voted

answered 2013-08-17 16:10:30 +0100

newOOo3 gravatar image

Hi, Vineet .
> wish to delete this csv file from disk ・・・How to do it using macro? (either python or vba or else)
Dose vba means LibreOffice Basic( LO Basic ) ?
If so, you use "kill" on LO Basic.
When you write macro using python, you use "remove" or "kill".
You can see the following URL for the sample code;

[ LO Basic ]
Sample 1( use "" service )
  URL 1:
Sample 2( not use "" service )
  URL 2:

[ Python ]
Sample 1( remove )
  URL 1:
Sample 2( use "" service )
  URL 1:

edit flag offensive delete link more


Thanks mate for your reply. Sorry, I could not reply to your answer in time. Let me go through the url's given by you.

Vineet gravatar imageVineet ( 2013-09-29 07:50:24 +0100 )edit

Question Tools

1 follower


Asked: 2013-08-14 13:57:51 +0100

Seen: 1,299 times

Last updated: Aug 17 '13