<?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: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28739#M20516</link>
    <description>&lt;P&gt;You can see when a notebook was last run if it's attached to an active cluster.  You can also read old logs to see what happened, but it's a lot of work for almost no gain.  There isn't any harm in having old notebooks that aren't run.  I have some notebooks in a workspace I have never run once and it's not problematic &lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 21:49:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-10T21:49:25Z</dc:date>
    <item>
      <title>Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28738#M20515</link>
      <description />
      <pubDate>Thu, 10 Feb 2022 21:45:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28738#M20515</guid>
      <dc:creator>wpenfold</dc:creator>
      <dc:date>2022-02-10T21:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28739#M20516</link>
      <description>&lt;P&gt;You can see when a notebook was last run if it's attached to an active cluster.  You can also read old logs to see what happened, but it's a lot of work for almost no gain.  There isn't any harm in having old notebooks that aren't run.  I have some notebooks in a workspace I have never run once and it's not problematic &lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 21:49:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28739#M20516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T21:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28740#M20517</link>
      <description>&lt;P&gt;Hi Josephk, I'm new to databricks, but I've been asked to clean up old notebooks in our environment that have been created over the years, and are no longer used.  Is there an API I can use to find when the last time a notebook was run?  Or any other suggestion you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 21:54:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28740#M20517</guid>
      <dc:creator>wpenfold</dc:creator>
      <dc:date>2022-02-10T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28741#M20518</link>
      <description>&lt;P&gt;I looked around internally and couldn't find anything.  Certainly nothing in the docs.  Maybe just try deleting things and seeing if people complain?  &lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 23:56:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28741#M20518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T23:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28742#M20519</link>
      <description>&lt;P&gt;Using workspace API you can list out all the notebooks for a given user.&lt;/P&gt;&lt;P&gt;The API response will tell you if the objects under the path is a folder or a notebook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's a folder then you can add it to the path and get notebooks within the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put all of that in an excel or something and ask your team members if they need a notebook or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET &lt;A href="https://&amp;lt;databricks-host-name&amp;gt;/api/2.0/workspace/list" target="test_blank"&gt;https://&amp;lt;databricks-host-name&amp;gt;/api/2.0/workspace/list&lt;/A&gt;
&amp;nbsp;
Body:
&amp;nbsp;
{ "path": "/Users/&amp;lt;username&amp;gt;" }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to &lt;A href="https://docs.databricks.com/dev-tools/api/latest/workspace.html" alt="https://docs.databricks.com/dev-tools/api/latest/workspace.html" target="_blank"&gt;this documentation&lt;/A&gt; for more details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, for a period of 'x' months archive them all in a github repo, in case someone needs access to notebooks later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going ahead, add sufficient logs in the notebook or a mechanism to record execution time.&lt;/P&gt;&lt;P&gt;It could be as simple as an insert statement at top cell that inserts a row in a table default.notebook-run with values notebook-name and timestamp, every time a notebook runs.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 00:39:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28742#M20519</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-11T00:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way I can tell when a Notebook was last run, so I can identify and delete Notebooks that are no longer being used?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28743#M20520</link>
      <description>&lt;P&gt;Just wondering...I can display 'Recent Activity' for a notebook--which gives me the information I'm looking for.  So it is being collected...someplace.  I can't find it in the APIs.  Anyplace else I could look for that info?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:48:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-i-can-tell-when-a-notebook-was-last-run-so-i-can/m-p/28743#M20520</guid>
      <dc:creator>wpenfold</dc:creator>
      <dc:date>2022-02-16T18:48:33Z</dc:date>
    </item>
  </channel>
</rss>

