update to resource's delete action so resources are unlinked from lessons upon delete