<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GCP Notes on mattanalytix</title><link>https://mattanalytix.com/notes/gcp/</link><description>Recent content in GCP Notes on mattanalytix</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://mattanalytix.com/notes/gcp/index.xml" rel="self" type="application/rss+xml"/><item><title>GCP Cloud SQL</title><link>https://mattanalytix.com/notes/gcp/cloudsql/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://mattanalytix.com/notes/gcp/cloudsql/</guid><description>&lt;!-- Deletion -->
&lt;div class="note-card ">
&lt;div class="item">
&lt;h5 class="note-title">&lt;span>Delete an Instance&lt;/span>&lt;/h5>
&lt;div class="card">
&lt;div class="card-body">&lt;p>By default Cloud SQL instances are created with deletion protection. To delete an instance you must first remove deletion protection using the gcloud cli. Run the following code in gcloud with your instance name to delete a Cloud SQL instance.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>gcloud sql instances patch &lt;span style="color:#f92672">[&lt;/span>INSTANCE_NAME&lt;span style="color:#f92672">]&lt;/span> --no-deletion-protection
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>gcloud sql instances delete &lt;span style="color:#f92672">[&lt;/span>INSTANCE_NAME&lt;span style="color:#f92672">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;/div>
&lt;/div>
&lt;/div></description></item></channel></rss>