Title: remove function not working
Last modified: October 16, 2018

---

# remove function not working

 *  Resolved [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/)
 * hi, i try use $captcha_instance->remove( $prefix );
    and it not remove anything
   on tmp folder.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/#post-10784110)
 * Make sure you have a correct value in $prefix.
 *  [Iman Razzak](https://wordpress.org/support/users/iman-razzak/)
 * (@iman-razzak)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/#post-10784669)
 * [@takayukister](https://wordpress.org/support/users/takayukister/) on WordPress.
   org
 * Can you help please
 * [https://wordpress.org/support/topic/inserting-a-hyperlink-in-a-checkbox-but-not-acceptance/](https://wordpress.org/support/topic/inserting-a-hyperlink-in-a-checkbox-but-not-acceptance/)
 * Thanks
 *  Thread Starter [Harris Marfel](https://wordpress.org/support/users/hrace009/)
 * (@hrace009)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/#post-10787062)
 * [@takayukister](https://wordpress.org/support/users/takayukister/), i correct
   prefix
 *     ```
       $captchaBox = new PWPanelCaptcha();
       $prefix = mt_rand();
       ```
   
 *     ```
       $word = $this->generate_random_word();
   
       	    printf(
       		    '<div align="center"><img src="%s" /></div>', PWPANEL__PLUGIN_URL . 'tmp/' . $this->generate_image( $prefix, $word )
       	    );
       	    printf(
       		    '<input type="text" id="pwpanel_captcha" name="pwpanel_captcha" min="6" max="6" minlength="6" maxlength="6" placeholder="%s" required />', __( 'Enter code from above', 'pwpanel' )
       	    );
       ```
   
 * `$captchaBox ->remove( $prefix );`
 * it not remove the generate image. What was i missing?
    btw, i use latest WordPress,
   and with PHP 72
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/#post-10788741)
 * This code has nothing to do with the Really Simple CAPTCHA plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘remove function not working’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-captcha/assets/icon-256x256.png?rev=1047241)
 * [Really Simple CAPTCHA](https://wordpress.org/plugins/really-simple-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-captcha/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/remove-function-not-working/#post-10788741)
 * Status: resolved