def METHOD_NAME(self, project_name, view_name):
    '''Deletes a view by name'''
    session = SessionController()
    try:
        project = session.database_controller.get_project(project_name)
    except NoResultFound:
        abort(HTTPStatus.NOT_FOUND, f'Project name {project_name} does not exist')
    if project.get_view(view_name) is None:
        abort(HTTPStatus.NOT_FOUND, f'View with name {view_name} does not exist')
    project.delete_view(view_name)
    return '', HTTPStatus.NO_CONTENT