apm_package_instance_delete (public)

 apm_package_instance_delete package_id

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Deletes an instance of a package

Parameters:
package_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_delete apm_package_delete (public) apm_package_instance_delete apm_package_instance_delete apm_package_delete->apm_package_instance_delete packages/acs-subsite/www/admin/applications/application-delete.tcl packages/acs-subsite/ www/admin/applications/application-delete.tcl packages/acs-subsite/www/admin/applications/application-delete.tcl->apm_package_instance_delete packages/acs-subsite/www/admin/site-map/instance-delete.tcl packages/acs-subsite/ www/admin/site-map/instance-delete.tcl packages/acs-subsite/www/admin/site-map/instance-delete.tcl->apm_package_instance_delete site_node::delete site_node::delete (public) site_node::delete->apm_package_instance_delete site_node_apm_integration::delete_site_nodes_and_package site_node_apm_integration::delete_site_nodes_and_package (public) site_node_apm_integration::delete_site_nodes_and_package->apm_package_instance_delete apm_invoke_callback_proc apm_invoke_callback_proc (public) apm_package_instance_delete->apm_invoke_callback_proc apm_package_key_from_id apm_package_key_from_id (public) apm_package_instance_delete->apm_package_key_from_id db_exec_plsql db_exec_plsql (public) apm_package_instance_delete->db_exec_plsql

Testcases:
No testcase defined.
Source code:
    set package_key [apm_package_key_from_id $package_id]
    # ns_log notice "apm_package_instance_delete inherit order [nsv_get apm_package_inherit_order $package_key]"
    if {[nsv_exists apm_package_inherit_order $package_key]} {
        foreach inherited_package_key [nsv_get apm_package_inherit_order $package_key] {
            apm_invoke_callback_proc  -package_key $inherited_package_key  -type before-uninstantiate  -arg_list [list package_id $package_id]
        }
    }

    db_exec_plsql apm_package_instance_delete {}
Generic XQL file:
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
<fullquery name="apm_package_instance_delete.apm_package_instance_delete">
    <querytext>
	select apm_package__delete(:package_id);
  </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
<fullquery name="apm_package_instance_delete.apm_package_instance_delete">
    <querytext>
    begin
      apm_package.del(
	package_id => :package_id
      );
    end;
  </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: