How to delete end of a string in python
<p>I have a string looks like this</p>

<pre><code>urse/project/kb/use.js
</code></pre>

<p>from this string i need to get</p>

<pre><code>urse/project/kb/
</code></pre>

<p><code>use.js</code> the name will always change except <code>.js</code>.</p>

<p>Or delete the string till the first <code>/</code> from the end?</p>
