Change the @text value to the text you want to search for.
Alter the database names in the below part of the script to only the databases you want to search in. The below code part will only search in Master, Tempdb, and MSDB.
DELETE FROM #databases
WHERE DatabaseName not IN ('master','tempdb','msdb')