Check if archiveID is not empty before remove