app/controllers/runtime/apps_controller.rb
# Soft delete of app: Events of a forign key constraint on app
#
# @param [String] guid The GUID of the object to delete.
Soft delete of app: Events of a forign key constraint on app
Soft delete of app : Events of a forign key constraint on app
def delete(guid)
      app = find_guid_and_validate_access(:delete, guid)
      if !recursive? && app.service_bindings.present?
        raise VCAP::Errors::AssociationNotEmpty.new("service_bindings", app.class.table_name)
      end
      Event.record_app_delete_request(app, SecurityContext.current_user, recursive?)
      app.db.transaction(savepoint: true) do
        app.soft_delete
      end
      [ HTTP::NO_CONTENT, nil ]
    end
def delete ( guid ) app = find_guid_and_validate_access ( :delete , guid ) if ! recursive? && app . service_bindings . present? raise VCAP :: Errors :: AssociationNotEmpty . new ( "service_bindings" , app . class . table_name ) end Event . record_app_delete_request ( app , SecurityContext . current_user , recursive? ) app . db . transaction ( savepoint : true ) do app . soft_delete end [ HTTP :: NO_CONTENT , nil ] end
Soft delete of app: Events of a forign key constraint on app
Soft delete of app : Events of a forign key constraint on app
guid
<not_specific>
<not_specific>
guid The GUID of the object to delete.
guid The GUID of the object to delete .