Skip to main content
SnapCenter 4.8 cmdlets

Remove-SmResource

Contributors

Removes a custom plug-in resource or an Oracle plug-in application volume resource.

Syntax

Remove-SmResource [-HostName]  <String>  [-PluginCode]  <PluginCode>

Detailed Description

Enables you to delete a custom plug-in resource or an Oracle plug-in application volume resource from SnapCenter. This deletes only the SnapCenter object, not the actual application object.If the resource is protected, then the resource is only soft-deleted and is available for recall Undo-Resource cmdlet; otherwise, the resource is permanently deleted from SnapCenter.

Parameters

Name Description Required? Pipeline Input Default Value

HostName

Specifies the name of host from which you want to remove the resource.

true

true (ByPropertyName)

PluginCode

Specifies the name of the plug-in associated with the resource you are removing. Possible inputs include HANA or any SCC Custom Plug-in name or SCO.

true

true (ByPropertyName)

ResourceType

The type of application object.For example, instance, database, or a SAP HANA SingleContainer or MultipleContainers. This parameter is not applicable for Oracle application volume resource.

true

true (ByPropertyName)

ResourceName

Specifies the name of the resource which you want to remove.

true

true (ByPropertyName)

SID

This is a SAP HANA database specific parameter. A SAP HANA system is identified by aunique 3 letter system ID (SID). For example, ABC.

true

true (ByPropertyName)

TenantDatabaseName

This is a SAP HANA database specific parameter. It is the name of the tenant database for SAP HANA Multitenant Database.

false

true (ByPropertyName)

Examples

Remove a custom plugin resource

 Remove-SmResource -HostName 'sccorelinux188.sccore.test.com' -PluginCode 'DB2' -Instance INST -ResourceType Database -ResourceName Db1

Remove a resource of type Database of custom plug-in type DB2
A resource will be soft deleted (marked as deleted) if the resource being deleted contains backup or is protected.

Successfully removed Inventory sccorelinux188.sccore.test.com:DB2:INST1\Db1

Remove a custom plugin resource without confirmation dialogue

 Remove-SmResource -HostName 'sccorelinux188.sccore.test.com' -PluginCode 'DB2' -Instance INST -ResourceType Database -ResourceName Db1 -Confirm:$false

Remove a resource of type Database of custom plug-in type DB2
A resource will be soft deleted (marked as deleted) if the resource being deleted contains backup or is protected.

Remove-SmResource
Are you sure you want to remove the resource?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Successfully removed Inventory sccorelinux188.sccore.test.com:DB2:INST1\Db1

Remove SAP HANA Multitenant Database Container

 Remove-SmResource -HostName 'scspr0204312001.gdl.englab.netapp.com' -PluginCode 'hana' -ResourceType MultipleContainers -SID NBC -TenantDatabaseName ttt

Remove Multitenant Database Container of SnapCenter Plug-in for SAP HANA. A resource will be soft deleted (marked as deleted) if the resource being deleted contains backup or is protected.

Remove-SmResource
Are you sure you want to remove the resource?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Successfully removed Inventory scspr0204312001.gdl.englab.netapp.com:hana:NBC\ttt

Remove SingleContainer SAP HANA Database

 Remove-SmResource -HostName 'scspr0204312001.gdl.englab.netapp.com' -PluginCode 'hana' -ResourceType SingleContainer -SID H14

Remove SingleContainer database of SnapCenter Plug-in for SAP HANA.
A resource will be soft deleted (marked as deleted) if the resource being deleted contains backup or is protected.

Remove-SmResource
Are you sure you want to remove the resource?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Successfully removed Inventory scspr0204312001.gdl.englab.netapp.com:hana:H14

Removes an Oracle Application Volume resource

 Remove-SmResource -HostName 'R8092776CF4V1.HNK2.com' -PluginCode 'SCO' -ResourceName 'appVol'

Removes an Oracle application volume resource.
A resource will be soft deleted (marked as deleted) if the resource being deleted contains backup or is protected.

Remove-SmResource
Are you sure you want to remove the resource : 'appVol' ?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Successfully removed resource R8092776CF4V1.HNK2.com:SCO:appVol