   <span class="k">return</span> <span class="kc">nil</span>
<span class="p">}</span>
</pre></div>


<h4 id="beforeapidelete">BeforeAPIDelete<a class="headerlink" href="#beforeapidelete" title="Permanent link">&para;</a></h4>
<p>BeforeDelete is only called before a 3rd-party client triggers a delete to the 
database. By returning a non-nil <code>error</code> value, the item will not be deleted.</p>
<div class="codehilite"><pre><span></span><span class="kd">func</span> <span class="p">(</span><span class="nx