cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted files won't go away

Deleted files won't go away

I have a file that's auto generated by my theme. It's called design_storename.css

There are a few changes that weren't updating on my site, so I deleted that file, changed another setting and it regenerated.

 

The old file is still the one loading, and I can't figure out why.

 

I've cleaned and flushed the caches, regenerated the file a half dozen times, ran setup:di:compile, reindexed, ran redis-cli flushall, cleared the Varnish cache, disabled the varnish cache, and that stubborn file keeps loading.

What can I do to make it go away and be replaced with the new one?

 

Thanks

2 REPLIES 2

Re: Deleted files won't go away

Hello @web_master12 

 

Make sure you're not doing any change in pub/static/ folder, the main css should be inside app/design/ or app/code/ , then do following process :

1. change the origin css files.

2. run below commands :

php bin/magento steup:static-content:deploy -f
php bin/magento cache:flush

and then restart your varnish.

Note : For any css/jss/theme change you have to run only above two commands, not indexing, redis or di:compile.

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !

Re: Deleted files won't go away

It was the cloudflare cache