Is it possible to delete a file from a specified folder using a macro function?
No, except you configure a user tool with the command del "%f" and run this user tool from within the macro with the command RunTool "case-sensitive name of the tool". If the macro does nothing else and you just want a command to delete the active file - see File - Special Functions - Delete Active File which can be quickly executed with an associated hotkey. I use for example Alt+Del.
Best regards from an UC/UE/UES for Windows user from Austria