def del_taskid(self, task_id):
        """Delete task_id from task_ids column in user table"""
        try:
            with crackq.app.app_context():
                for user in User.query.all():
                    if user.task_ids and task_id in user.task_ids:
                        tasks = json.loads(user.task_ids)
                        logger.debug('Registered tasks: {}'.format(tasks))
                        if isinstance(tasks, list):
                            logger.debug('Unregistering task_id: {}'.format(task_id))
                            if task_id in tasks:
                                tasks.remove(task_id)
                                user.task_ids = json.dumps(tasks)
                                db.session.commit()
                                logger.debug('user.task_ids: {}'.format((user.task_ids)))
                                return True
                        else:
                            logger.error('Error removing task_id')
                    else:
                        logger.debug('Task ID not registered with user')
                return False
        except AttributeError:
            return False
        except exc.UnmappedInstanceError:
            return False
        except exc.SQLError:
            return False
        except Exception as err:
            logger.debug('Error deleting Task: {}'.format(err))
            return False
Delete task_id from task_ids column in user table
crackq/cq_api.py