Title: PHP Warning: unlink
Last modified: April 15, 2021

---

# PHP Warning: unlink

 *  [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * (@jordanwebdev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-unlink/)
 * PHP Warning: unlink(../wp-scss/cache/style.css): No such file or directory in../
   wp-scss/class/class-wp-scss.php on line 121

Viewing 1 replies (of 1 total)

 *  Thread Starter [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * (@jordanwebdev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-unlink/#post-14323920)
 * My idea is to replace line 121 of wp-scss/class/class-wp-scss.php with the following:
 *     ```
       $unlink_file = $cache.$cache_file->getFilename();
                     if (is_file($unlink_file)) {
                       unlink($unlink_file); // Delete file on successful write
                     }
       ```
   
 * If that doesn’t work, perhaps the following will:
    [https://stackoverflow.com/a/33913406/5644982](https://stackoverflow.com/a/33913406/5644982)

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: unlink’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-scss_222222.svg)
 * [WP-SCSS](https://wordpress.org/plugins/wp-scss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-scss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-scss/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-scss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-scss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-scss/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-unlink/#post-14323920)
 * Status: not resolved