I am new in Laravel.
I am trying to delete the data folder which is under /storage/framework/cache/.
I did php artisan cache:clear which produces: Application cache cleared!
But when I go into the directory /storage/framework/cache/data then I see the old cache folders are still there and when I try to delete the folder manually then I get permission issue.
I have followed the below thread to give permissions to the storage folder.
How to set up file permissions for Laravel?
Permission level -
drwxrwsr-x   7  ubuntu   www-data 4096 Apr 24 22:48 storage
   drwxrwxr-x   7  ubuntu   www-data 4096 Apr 28 16:57 framework
     drwxrwxr-x   4  ubuntu   www-data 4096 Apr 29 18:32 cache
        drwxrwxr-x   39 www-data www-data 4096 Apr 29 20:36 data
I am logged in as a user subadmin who is under www-data group. I can though delete the folder manually after login as user ubuntu but not as subadmin
Any help is highly appreciated.
 
     
    