<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete a file from GCS folder in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delete-a-file-from-gcs-folder/m-p/20653#M13965</link>
    <description>&lt;P&gt;@M Baig​&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes you need just to create service account for databricks and than assign storage admin role to bucket. After that you can mount GCS standard way:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;bucket_name = "&amp;lt;bucket-name&amp;gt;"&lt;/LI&gt;&lt;LI&gt;mount_name = "&amp;lt;mount-name&amp;gt;"&lt;/LI&gt;&lt;LI&gt;dbutils.fs.mount("gs://%s" % bucket_name, "/mnt/%s" % mount_name)&lt;/LI&gt;&lt;LI&gt;display(dbutils.fs.ls("/mnt/%s" % mount_name))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;here link for ur refer before process, hope some info help on this case&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.gcp.databricks.com/external-data/gcs.html" target="test_blank"&gt;https://docs.gcp.databricks.com/external-data/gcs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;cheer&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 04:06:03 GMT</pubDate>
    <dc:creator>Unforgiven</dc:creator>
    <dc:date>2022-11-25T04:06:03Z</dc:date>
    <item>
      <title>Delete a file from GCS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/delete-a-file-from-gcs-folder/m-p/20652#M13964</link>
      <description>&lt;P&gt;What is the best way to delete files from the gcp bucket inside spark job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 23:09:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delete-a-file-from-gcs-folder/m-p/20652#M13964</guid>
      <dc:creator>MBV3</dc:creator>
      <dc:date>2022-11-24T23:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file from GCS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/delete-a-file-from-gcs-folder/m-p/20653#M13965</link>
      <description>&lt;P&gt;@M Baig​&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes you need just to create service account for databricks and than assign storage admin role to bucket. After that you can mount GCS standard way:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;bucket_name = "&amp;lt;bucket-name&amp;gt;"&lt;/LI&gt;&lt;LI&gt;mount_name = "&amp;lt;mount-name&amp;gt;"&lt;/LI&gt;&lt;LI&gt;dbutils.fs.mount("gs://%s" % bucket_name, "/mnt/%s" % mount_name)&lt;/LI&gt;&lt;LI&gt;display(dbutils.fs.ls("/mnt/%s" % mount_name))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;here link for ur refer before process, hope some info help on this case&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.gcp.databricks.com/external-data/gcs.html" target="test_blank"&gt;https://docs.gcp.databricks.com/external-data/gcs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;cheer&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 04:06:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delete-a-file-from-gcs-folder/m-p/20653#M13965</guid>
      <dc:creator>Unforgiven</dc:creator>
      <dc:date>2022-11-25T04:06:03Z</dc:date>
    </item>
  </channel>
</rss>

