> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteGraph

<div className="kinetica-doxygen">
  <div id="a856b5855b4b4179036949947353ffa11" />

  <h2 className="memtitle"><span className="permalink"><a href="#a856b5855b4b4179036949947353ffa11">◆ </a></span>deleteGraph() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> gpudb::GPUdb::deleteGraph </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphRequest">DeleteGraphRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes an existing graph from the graph server and/or persist. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a7c348316ef92aa6211508d943e40453a" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7c348316ef92aa6211508d943e40453a">◆ </a></span>deleteGraph() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> & gpudb::GPUdb::deleteGraph </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphRequest">DeleteGraphRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes an existing graph from the graph server and/or persist. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="aaa544a93e287b733c600682cbf3dfb4b" />

  <h2 className="memtitle"><span className="permalink"><a href="#aaa544a93e287b733c600682cbf3dfb4b">◆ </a></span>deleteGraph() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> gpudb::GPUdb::deleteGraph </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">graphName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes an existing graph from the graph server and/or persist. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">graphName</td>
              <td>Name of the graph to be deleted. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ac82e804e5c35146e4250b6c534fe2e77">delete\_graph\_delete\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">true</a>, the graph is removed from the server and persist. If set to <a className="el" href="/content/api/cpp/namespacegpudb#ab5c23bbbbf2a13cab6527928fe53d5aa">false</a>, the graph is removed from the server but is left in persist. The graph can be reloaded from persist if it is recreated with the same 'graph\_name'. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">delete\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab5c23bbbbf2a13cab6527928fe53d5aa">delete\_graph\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">delete\_graph\_true</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abbaaabc2f0131ca554e84fe928157fd1">delete\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to get information about all the servers. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a6b0dd83e8aec362c8812868088ca4ce1" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6b0dd83e8aec362c8812868088ca4ce1">◆ </a></span>deleteGraph() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> & gpudb::GPUdb::deleteGraph </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">graphName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">DeleteGraphResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Deletes an existing graph from the graph server and/or persist. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">graphName</td>
              <td>Name of the graph to be deleted. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#ac82e804e5c35146e4250b6c534fe2e77">delete\_graph\_delete\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">true</a>, the graph is removed from the server and persist. If set to <a className="el" href="/content/api/cpp/namespacegpudb#ab5c23bbbbf2a13cab6527928fe53d5aa">false</a>, the graph is removed from the server but is left in persist. The graph can be reloaded from persist if it is recreated with the same 'graph\_name'. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">delete\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab5c23bbbbf2a13cab6527928fe53d5aa">delete\_graph\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a7fb67ac0b9037b36415175d7f9b84817">delete\_graph\_true</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abbaaabc2f0131ca554e84fe928157fd1">delete\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to get information about all the servers. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DeleteGraphResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
