Delete relation on parent delete if key is primary

Signed-off-by: Tom Wright <tom@inflatablecookie.com>