You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by harith roli <ha...@gmail.com> on 2020/08/11 07:24:04 UTC

How to delete OS template via database

please help, I need a way to delete OS template of cloudstack via database. Currently the status of template is UploadAbandoned. I try delete using gui, Zones --> click button "x" to delete template  but I got message box indicate status failed to delete template. Thank you for your help

Re: How to delete OS template via database

Posted by Rakesh Venkatesh <ww...@gmail.com>.
vm_template is not an api. Its a table in cloud database

On Wed, Aug 12, 2020 at 11:35 AM Wan Rahim, Wan Mohd Saifudin <
WanMohdSaifudin.WanRahim@itelligence.com.my> wrote:

> Already tested to delete the template in cloudmonkey but still failed.
>
> And vm_template api is not available.
>
> Is there any other method can be used?
>
> Thanks
> Din
>
> -----Original Message-----
> From: Rakesh Venkatesh [mailto:www.rakeshv.com@gmail.com]
> Sent: Tuesday, 11 August, 2020 6:47 PM
> To: users <us...@cloudstack.apache.org>
> Subject: Re: How to delete OS template via database
>
> EXTERNAL MAIL:
>
> You can set "state" to "Inactive" in vm_template table and it wont show up
> in UI
>
> update vm_template set state="Inactive" where id=<> limit 1;
>
> or you can run delete template id= cloudmonkey api to delete it
>
> On Tue, Aug 11, 2020 at 9:49 AM harith roli <ha...@gmail.com> wrote:
>
> > please help, I need a way to delete OS template of cloudstack via
> > database. Currently the status of template is UploadAbandoned. I try
> > delete using gui, Zones --> click button "x" to delete template  but I
> > got message box indicate status failed to delete template. Thank you
> > for your help
> >
>
>
> --
> Thanks and regards
> Rakesh venkatesh
>
>
>


-- 
Thanks and regards
Rakesh venkatesh

RE: How to delete OS template via database

Posted by "Wan Rahim, Wan Mohd Saifudin" <Wa...@itelligence.com.my>.
Already tested to delete the template in cloudmonkey but still failed.

And vm_template api is not available.

Is there any other method can be used?

Thanks
Din

-----Original Message-----
From: Rakesh Venkatesh [mailto:www.rakeshv.com@gmail.com] 
Sent: Tuesday, 11 August, 2020 6:47 PM
To: users <us...@cloudstack.apache.org>
Subject: Re: How to delete OS template via database

EXTERNAL MAIL: 

You can set "state" to "Inactive" in vm_template table and it wont show up in UI

update vm_template set state="Inactive" where id=<> limit 1;

or you can run delete template id= cloudmonkey api to delete it

On Tue, Aug 11, 2020 at 9:49 AM harith roli <ha...@gmail.com> wrote:

> please help, I need a way to delete OS template of cloudstack via 
> database. Currently the status of template is UploadAbandoned. I try 
> delete using gui, Zones --> click button "x" to delete template  but I 
> got message box indicate status failed to delete template. Thank you 
> for your help
>


--
Thanks and regards
Rakesh venkatesh

 

Re: How to delete OS template via database

Posted by Rakesh Venkatesh <ww...@gmail.com>.
You can set "state" to "Inactive" in vm_template table and it wont show up
in UI

update vm_template set state="Inactive" where id=<> limit 1;

or you can run delete template id= cloudmonkey api to delete it

On Tue, Aug 11, 2020 at 9:49 AM harith roli <ha...@gmail.com> wrote:

> please help, I need a way to delete OS template of cloudstack via
> database. Currently the status of template is UploadAbandoned. I try delete
> using gui, Zones --> click button "x" to delete template  but I got message
> box indicate status failed to delete template. Thank you for your help
>


-- 
Thanks and regards
Rakesh venkatesh