def METHOD_NAME(self, project_id, cronjob_id):
    '''
    Delete a cronjob
    '''
    if not validate_uuid(cronjob_id):
        abort(400, "Invalid cronjob uuid.")
    num_cronjobs = g.db.execute_one("""
        SELECT COUNT(*) FROM cronjob
        WHERE project_id = %s and id = %s
    """, [project_id, cronjob_id])[0]
    if num_cronjobs == 0:
        return abort(400, 'Cronjob does not exist.')
    g.db.execute("""
        DELETE FROM cronjob WHERE project_id = %s and id = %s
    """, [project_id, cronjob_id])
    g.db.commit()
    return OK('Successfully deleted cronjob.')