How to Delete files by macro

Hi all,
I need to use macro to delete others file and I try to adapt vb code to delete file (My.Computer.FileSystem.DeleteFile(“D:\TestD.ods”) >I use file A.ods and try to write macro in A.ods for delete TestD file) but it’s not work and cannot use (RmDir) also.
What should I do. Thank you everyone for help.

Hello,

check Basic run-time function kill here

Thank you!!!