There is no uninstaller program for Sana Commerce to automate
the uninstallation procedure. Therefore, you should do it
manually. The uninstallation procedure consists of the following
See detailed description of these steps below.
You may want to create a backup of the Sana Commerce solution
before uninstalling it if you plan to restore it again in future.
For instructions on how to backup or restore Sana Commerce, please
At first it is required to cleanup the data used by SC in NAV
before the removing of the objects from NAV. Sana Commerce provides
a codeunit 'SC - Uninstall' with ID '11123399' which can be used to
clear the data. This codeunit deletes the data from all the custom
SC tables and clears the SC specific fields in the standard NAV
tables. It also performs unpublishing of the 'SC - NAV Web Service'
codeunit (object ID: '11123303') and deletes all the custom SC
objects from NAV.
Find this codeunit in the Object Designer of NAV Client and run
it by selecting it and clicking the 'Run' button. Close the NAV
Classic Client and open it again in order to see the changes.
In both cases you must manually remove all the SC changes from
the standard NAV objects modified by SC. In order to do this, refer
to the 'Microsoft Dynamics
NAV Changes' page on the help site.
Remove the SC changes from the objects specified in the 'Changed
NAV Objects' section and then remove the SC
Step 1: Find the 'fob' or 'txt' file which
contains the standard NAV objects and which was created during the
installation of SC according to 'Backup Standard NAV
Objects' paragraph of the 'Import NAV Objects' chapter. Open
help wizard, select your scenario and move to the needed
Step 2: Import the objects from this file
(replace the existing objects when NAV client requests). By
importing the objects from this file you roll back the objects
changed by SC to their state before SC had been installed.
Step 1: Unregister the Sana Commerce NAV
service. In order to do this open the Visual Studio 2008 command
prompt and run the following command in it:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" Sana.Commerce.Navision.Service.dll /unregister
"C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe" Sana.Commerce.Navision.Service.dll /unregister
Step 2: Uninstall the Sana Commerce NAV service
assembly from the GAC. For this run the following command in the
Visual Studio 2008 command prompt:
gacutil /u Sana.Commerce.Navision.Service
Step 3: Delete the Sana Commerce NAV service's
URL ACL from the URL ACL store. To do this, run the following
httpcfg delete urlacl /u #PROTOCOL#://#URL#:#PORTNUMBER#/navision/
Here #PROTOCOL#, #URL# and #PORTNUMBER# are the tags, that
should be replaced by their corresponding values. These values
should be exactly the same as the ones are used during the
installation of the Sana Commerce NAV web service:
#PROTOCOL#: protocol type (HTTP or HTTPS)
#URL#: Change to:
: when the port registrations in the HTTP Server routing table are
placed in the "Strong Wildcard" bucket;
: when the port registrations are placed in the "Explicit"
: when the port registrations are placed in the "IP-bound Weak
: when the port registrations are placed in the "Weak Wildcard"
#PORTNUMBER#: must be replaced by the port number on which the NAS
For more information about routing incoming requests, please
For information about how to uninstall the Sana model from
Microsoft Dynamics AX 2012, see 'Uninstall
Sana Model [Sana 8.3 SP1]'.
This step consists of two sub-steps: the dropping of the
database and the deletion of the database login associated
with it. To drop the SC database, take the following actions:
Step 1: Open the SQL Server Management Studio
and connect to the database server, where the Sana Commerce SQL
Server database is running.
Step 2: Right-click on the Sana Commerce
database name and select the 'Delete' menu item.
Step 3: Click the 'OK' button in the
confirmation window that opens.
To delete the database login associated with the SC database do
Step 1: In the SQL Server Management Studio
open the 'SQL server instance > Security > Logins' in the
Object Explorer panel.
Step 2: Locate the SQL Server Login which is
used as a login for the Sana Commerce database.
Step 3: Make sure that this SQL Server Login is
used only for the SC database which has just been dropped. If this
login is also used for the other databases, then do not delete it
and proceed to the next paragraph. Otherwise, if this login is used
only for the SC database, then right-click on the Object Explorer
and select the 'Delete' menu item.
Step 4: Click the 'OK' button in the window
that opens to confirm the deletion of the login.
According to the installation manual two NT users were
created, which are referred to as SC_Webuser and SC_NAVUser. These
users must be deleted from the system.
In order to remove the local users, perform the following
Step 1: Open the 'Computer Management' console
available in 'Control Panel > Administrative Tools > Computer
Step 2: Expand the 'System Tools > Local
Users and Groups > Users' node.
Step 3: One by one right-click on all the SC
users in the right panel and select the 'Delete' menu item.
Step 4: For each user confirm the deletion by
clicking the 'OK' button in the window that pops up.
In case the domain users are used instead of the local users,
refer to the Active Directory help
Step 1: Find the Sana Commerce frontend website
in the IIS Management Console.
Step 2: Right-click on the website node and
select the 'Remove' submenu if you use IIS 7 or newer, or select
the 'Delete' submenu if you use IIS 6. Check that the corresponding
application pool is removed as well. Note that in IIS 5.1 or older
it is not possible to remove the website.
Step 3: Confirm the deletion operation.
Step 4: If the Sana Commerce backoffice is
installed as a separate website, but not as a virtual directory,
then repeat the same steps for the backoffice as well.
Step 1: Find the location where the log files
are written by the Sana Commerce web applications. The location
where the log files are stored is determined in the 'Web.config'
file of the frontend, the <listeners> configuration
Step 2: Delete the folder with the Sana
Commerce log files completely.
Navigate to the folder where Sana Commerce has been installed
and delete the Sana Commerce source code folder completely.