added method to remove party_relationships when party is removed, updated s3 file adapter