Deleting record when zero files attached