Deletes the given SMS activity.

@param string $activityId The ID of the activity to delete

@deprecated since version 0.8, to be removed in 0.9. Use SmsActivityApi::delete() instead.
345890
public function deleteSms(string $activityId): void
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use SmsActivityApi::delete() instead.', __METHOD__), E_USER_DEPRECATED);

        $this->client->delete($this->prepareUrlForKey('delete-sms', ['id' => $activityId]));
    }
1266050
public function deleteAction($layoutId)
    {
        $em = $this->get('doctrine.orm.entity_manager');
        $layout = $em->find('LexikMailerBundle:Layout', $layoutId);

        if (!$layout) {
            throw $this->createNotFoundException(sprintf('No layout found for id "%d".', $layoutId));
        }

        $em->remove($layout);
        $em->flush();

        return $this->redirect($this->generateUrl('lexik_mailer.layout_list'));
    }
858437
public function actionTasknotedelete($taskid, $id)
    {
        Task::getTaskNoteModel($id)->delete();

        return $this->redirect(['tasknotelist', 'taskid' => $taskid]);
    }
935343
public function delete($notificationId)
    {
        return $this->sendRequest(
            self::METHOD_DELETE,
            str_replace(':notification_id', $notificationId, self::$endPoints['delete'])
        );
    }
222139
public function deleteTranslationAction($translationId)
    {
        $em = $this->get('doctrine.orm.entity_manager');
        $translation = $em->find('LexikMailerBundle:EmailTranslation', $translationId);

        if (!$translation) {
            throw $this->createNotFoundException(sprintf('No translation found for id "%d"', $translationId));
        }

        $em->remove($translation);
        $em->flush();

        return $this->redirect($this->generateUrl('lexik_mailer.email_edit', array('emailId' => $translation->getEmail()->getId())));
    }
302994
function delete_session($sessionid) {
        try {
            $param = new \Panopto\SessionManagement\DeleteSessions($this->auth, array($sessionid));
            $this->smclient->DeleteSessions($param);
        } catch (Exception $e) {
            throw new SoapFault('client', $e->getMessage());
        }
        return true;
    }
1132301
public function deleteById(string $modelId)
    {
        $deleteResult = $this->getRequest()->request(
            'DELETE',
            $this->getRequestUrl(sprintf('models/%s', $modelId))
        );

        return $deleteResult['status'];
    }
418498
public function deleteTaskById($taskId)
    {
        $result = $this->callService('DELETE', self::API_FS_TASK . $taskId);

        return $result->getSuccess();
    }
164053
public function deleteAction($id)
    {
        try {
            return parent::deleteAction($id);
        } catch (\Exception $e) {
            return $this->deleteActionException($e);
        }
    }
734739
public function delete($sOXID = null)
    {
        if (parent::delete($sOXID)) {
            \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderManufacturer::class)->onDeleteManufacturer($this);

            return true;
        }

        return false;
    }
1215373
public function delete($messageId)
    {
        return $this->sendRequest(
            self::METHOD_DELETE,
            str_replace(':message_id', $messageId, self::$endPoints['delete'])
        );
    }
185380
public function addSms(SmsActivity $activity): SmsActivity
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use SmsActivityApi::create() instead.', __METHOD__), E_USER_DEPRECATED);

        /** @var SmsActivityApi $apiHandler */
        $apiHandler = $this->closeIoApiWrapper->getSmsActivitiesApi();

        return $apiHandler->create($activity);
    }
122930
public function delete($sOXID = null)
    {
        if (parent::delete($sOXID)) {
            \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderVendor::class)->onDeleteVendor($this);

            return true;
        }

        return false;
    }
72516
public function delete($id)
    {
        $entity = $this->findById($id);
        $entity = $this->beforeDelete($entity);

        $this->getEntityManager()->remove($entity);
        $this->getEntityManager()->flush();

        $this->afterDelete($entity);
    }
445818
public function delete($entityId)
    {
        $this->preDelete($entityId);
        $return = $this->doDelete($entityId);
        $this->postDelete($entityId);

        return $return;
    }
1151605
public function delete(string $id = null)
    {
        $this->request->allowMethod(['post', 'delete']);
        $language = $this->Languages->get($id);
        if ($this->Languages->delete($language)) {
            $this->Flash->success((string)__('The language has been deleted.'));
        } else {
            $this->Flash->error((string)__('The language could not be deleted. Please, try again.'));
        }

        return $this->redirect(['action' => 'index']);
    }
938153
public function deleteAction($entityId)
    {
        $this->checkAuth($this->resources, $this->modules, AccessManager::DELETE);

        $con = Propel::getConnection();
        $con->beginTransaction();

        try {
            $event = $this->getDeleteEvent($entityId);

            $obj = $this->extractObjectFromEvent($event);

            if (null === $obj || false === $obj) {
                $this->entityNotFound($entityId);
            }

            $dispatcher = $this->getDispatcher();
            foreach ($this->deleteEvents as $eventName) {
                $dispatcher->dispatch($eventName, $event);
            }

            $con->commit();
        } catch (HttpException $e) {
            $con->rollBack();

            return new JsonResponse(["error" => $e->getMessage()], $e->getStatusCode());
        } catch (\Exception $e) {
            $con->rollBack();

            return new JsonResponse(["error" => $e->getMessage()], 500);
        }

        return $this->nullResponse(204);
    }