There is no built-in functionality for automating this. You could manually run the script below under Configuration/Scanning Setup/Database Scripts to set all assets with a barcode to non-active. Copy and paste the code and hit the Execute SQL Code button.
We recommend performing a database backup before executing any scripts.
Update tblassetcustom set state = 2 where barcode <> ''