//Delete deletes a TimeConfig from Datastore, emptying its Key field. func (tc *TimeConfig) Delete(c appengine.Context) (err error) { err = gaemodel.Delete(c, tc) if err != nil { return } err = config.UpdateTimestamp(c) return }
func (a *Activation) Delete(c appengine.Context) (err error) { gaemodel.Delete(c, a) if err != nil { return } a.SetKey(nil) return }
//Delete deletes the presentation record from Datastore and //its data file from Blobstore. func (p *Presentation) Delete(c appengine.Context) (err error) { err = action.DeleteFor(p, c) if err != nil { return } err = gaemodel.Delete(c, p) if err != nil { return } err = blobstore.Delete(c, p.BlobKey) return }