async def METHOD_NAME(self, task_id: int):
    """
    Delete a task.
    :param task_id: ID of the task
    """
    task = await self.get(task_id)
    if not task:
        raise ResourceNotFoundError
    async with AsyncSession(self._pg) as session:
        await session.execute(delete(SQLTask).where(SQLTask.id == task_id))
        await session.commit()
    emit(task, "tasks", "delete", Operation.DELETE)