Updated contact delete() to include deletion of depencies