# Delete registrations in SCC via command line?

**URL:** <https://forums.suse.com/t/delete-registrations-in-scc-via-command-line/32798>\
**Category:** SUSE Customer Center\
**Created:** [August 10, 2018, 4:54pm UTC](https://forums.suse.com/t/delete-registrations-in-scc-via-command-line/32798 "2018-08-10T16:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzgoebel](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lorenzgoebel](https://forums.suse.com/u/lorenzgoebel)\
**Post date:** [August 10, 2018, 4:54pm UTC](https://forums.suse.com/t/delete-registrations-in-scc-via-command-line/32798/1 "2018-08-10T16:54:59Z")

</div>

Hello,

we would like to list and delete registrations - e.g. registered SLES servers - in SCC via command line from a local system. I thought it might be possible by using SMT. So I installed SMT, linked it to SCC with our mirror credentials and performed an smt-scc-sync. However, smt-list-registrations still lists no registrations. Trying to delete a registration from SCC by using smt-delete-registration fails because the registration cannot be found locally (on SMT).

Is SMT supposed to see and be able to manage registrations which are only in SCC? If yes, did I do something wrong?

Is there any other good way to delete hundereds of registrations from SCC via command line or script?

Best regards

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [August 13, 2018, 2:41pm UTC](https://forums.suse.com/t/delete-registrations-in-scc-via-command-line/32798/2 "2018-08-13T14:41:45Z")

</div>

On 10/08/18 15:04, lorenzgoebel wrote:  
[color=blue]

> we would like to list and delete registrations - e.g. registered SLES  
> servers - in SCC via command line from a local system. I thought it  
> might be possible by using SMT. So I installed SMT, linked it to SCC  
> with our mirror credentials and performed an smt-scc-sync. However,  
> smt-list-registrations still lists no registrations. Trying to delete a  
> registration from SCC by using smt-delete-registration fails because the  
> registration cannot be found locally (on SMT).[/color]

The SMT commands related to registration deal with systems registered to  
the SMT server not to SCC in general.  
[color=blue]

> Is SMT supposed to see and be able to manage registrations which are  
> only in SCC? If yes, did I do something wrong?[/color]

So if you have a system registered to your local SMT server it should  
show up via smt-list-registrations.  
[color=blue]

> Is there any other good way to delete hundereds of registrations from  
> SCC via command line or script?[/color]

There is an API available - please see  
[https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md](https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md)  
.. I think you should be able to use ‘destroy system’ -  
[https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md#destroy-system-of-organization](https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md#destroy-system-of-organization)

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.
