Remove this application from the model.
181411
async def destroy(self):
        
        app_facade = client.ApplicationFacade.from_connection(self.connection)

        log.debug(
            'Destroying %s', self.name)

        return await app_facade.Destroy(self.name)
772146
public function delete()
    {
        $em = Application::getFacadeApplication()->make(EntityManagerInterface::class);
        $em->remove($this);
        $em->flush();
    }
43486
protected void removeStartedApplication(ServiceReference<Application> ref) {
        String appName = (String) ref.getProperty(NAME);
        lock.writeLock().lock();
        try {
            appStates.remove(appName);
        } finally {
            lock.writeLock().unlock();
        }
    }
1296577
def unload_fixture(apps, schema_editor):
    ""

    MyModel = apps.get_model("blog", "Post")
    MyModel.objects.all().delete()
543062
public static void uninstall() {
        synchronized (log()) {
            if (cInstalled) {
                cInstalled = false;
                System.setOut(cOriginalOut);
                System.setErr(cOriginalErr);
                cOriginalOut = null;
                cOriginalErr = null;
                cSystemOut = null;
                cSystemErr = null;
            }
        }
    }
895957
private void cleanUpAction() {

        try {
            m_model.deleteDescriptorIfNecessary();
        } catch (CmsException e) {
            LOG.error(m_messages.key(Messages.ERR_DELETING_DESCRIPTOR_0), e);
        }
        // unlock resource
        m_model.unlock();
    }
842739
def app_remove(name, **kwargs):
    
    ctx = Context(**kwargs)
    ctx.execute_action('app:remove', **{
        'storage': ctx.repo.create_secure_service('storage'),
        'name': name,
    })
75004
def rm(self, index):
        
        if self.model.exists(index):
            self.model.remove(index)
1333817
def removeApplicationManifest(self, pchApplicationManifestFullPath):
        """"""

        fn = self.function_table.removeApplicationManifest
        result = fn(pchApplicationManifestFullPath)
        return result
503746
def remove(cls, resource_id, parent_id=None, grandparent_id=None,
               wait=True, timeout=None):
        """"""
        raise exception.NotSupported(feature="DELETE",
                                     context="VirtualSwitchManager")
1225593
def stop_app(self, package_name, clear=False):
        '''
        
        '''
        if clear:
            self.adb_shell(['pm', 'clear', package_name])
        else:
            self.adb_shell(['am', 'force-stop', package_name])
        return self
1374569
def close_application(self):
        """"""
        self._debug('Closing application with session id %s' % self._current_application().session_id)
        self._cache.close()
501421
def unregister_model(self, model):
        
        if model not in self._model_registry:
            raise NotRegistered('The model %s is not registered' % model)

        del self._model_registry[model]
1262173
function() {
      var t = this,
          components = t.model.get('components');
      components.remove(components.models);
      t.showSettings();
    }
868553
function destroy(appName, callback) {
    commons.del(format('/%s/apps/%s/', deis.version, appName), callback);
  }
1089226
final protected function removeAppProcess()
    {
        $appname = $this->params['appname'];
        Output::displayAsGreen("Processing to delete app : $appname \n", "none", false);
        sleep(1);

        // DELETE TO APP CORE

        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        if (!empty($file)) {
            foreach ($file as $one => $val) {
                if ($val->name == $appname) {
                    unset($file->$one);
                    break;
                }
            }

            $file = array_values((array)$file);
            $filetemp = $file;
            $file = json_encode((object) $file, JSON_PRETTY_PRINT);

            file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), $file);
            if (strlen($file) < 3) {
                file_put_contents(FEnvFcm::get("framework.config.core.apps.file"), "");
            }
        }

        $asm = new AssetsManager();
        $asm->__render(["commands" => ["assets:clear"],
            "options" => ["--quiet", "--noexit", "--appname=". $this->params['appname']]]);
        // $this->removeComposerApp($appname);
        Server::delete(FEnvFcm::get("framework.apps")."$appname", "directory");
        if (empty($filetemp)) {
            $base = __DIR__."/../../../../../../";
            $elem = json_decode(file_get_contents($base."elements/config_files/core/framework.config.json"));
            $elem->installation = null;
            $elem->deployment = null;
            file_put_contents($base."elements/config_files/core/framework.config.json", json_encode($elem));
        }
        Output::displayAsGreen("The application has been deleted. To create a new application,
         use [app create] .", "none", false);
    }
1339512
def destroy(self):
        
        widget = self.widget
        if widget is not None:
            parent = self.parent_widget()
            if parent is not None:
                parent.removeView(widget)
            del self.widget
        super(AndroidToolkitObject, self).destroy()