Can not delete virtual machine

Hello, interesting problem, does not allow to delete virtual machine in opennebula executing shell code:

After writing in shell script line:

$ onevm recover --delete [virtual_machineid]

Occurs error:

User[id] : not authorized to perform ADMIN vm[id]

I use opennebula 6.8 version, maybe is it a bug? Where could be a problem? how should i fix that issue?

Looks like the opennebula user trying to perform the recover is not authorized to manage the VM in question. Check the VM permissions with onevm show <vm_id>.

After executing this command, tells:
ONE_AUTH file not present.

Make sure you either have the user auth stored in the corresponding file. Either that or pass the --user and --password arguments to every command.