Title: Delete file after uploading
Last modified: July 8, 2021

---

# Delete file after uploading

 *  Resolved [Equipe GameGratis](https://wordpress.org/support/users/gamegratis/)
 * (@gamegratis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/delete-file-after-uploading/)
 * Hello, first of all thanks for the amazing plugin!
 * I’m going to buy the Gsheet Connector Pro License, but I need to know something
   before. I need to let users upload an image, but instead of the image url, I 
   need the image ID posted on google sheets. Is that possible?
 * Either that or I need to make a way to delete the uploaded photos by users, automatically.
   
   Thats because I will use the image to create a new product, and that will duplicate
   the image (create another one).
 * If its possible to send the image ID to Gsheets, the new product can use this
   image. But if I can only send the URL, then I use it the create product, but 
   after I need to automatically delete that photo.
 * Is some of that possible? How can I achieve it?
 * Thank you very much in advance!

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

 *  Plugin Author [WesternDeal](https://wordpress.org/support/users/westerndeal/)
 * (@westerndeal)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/delete-file-after-uploading/#post-14646146)
 * Hi [@gamegratis](https://wordpress.org/support/users/gamegratis/),
 * Apologize for the late reply.
 * Can you let us know for the image uploading are you going to use any 3rd party
   plugin?
 * If so then to make it compatible with any 3rd plugin we have do provided hooks
   which you can implement and customize code to get those 3rd plugin data to the
   Google Sheet and there only you can add your other custom code to delete the 
   uploaded images if duplicate image found.
 * Also to avoid replacing of the files/image that have same name we prefix the 
   files with 10 digit random number.
 * Hope this helps. Also further you can connect us via our PRO support email via
   our plugin website.
 * Thanks
    Abdullah
    -  This reply was modified 4 years, 10 months ago by [WesternDeal](https://wordpress.org/support/users/westerndeal/).
 *  Thread Starter [Equipe GameGratis](https://wordpress.org/support/users/gamegratis/)
 * (@gamegratis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/delete-file-after-uploading/#post-14653715)
 * Hey thank you very much for your response friend!
 * I am not using any 3rd plugin, I’m using the cf7 form, then sending the image
   link to google sheets, and then creating a woocommerce product with that.
 * But actually I figured it out how to create the product with an image already
   uploaded into the site.
 * But to do that I need to send the image ID and not the image url. Is there any
   way to do that on Gsheet Connector free or PRO version?
 * Thank you again and sorry for the changes.

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

The topic ‘Delete file after uploading’ is closed to new replies.

 * ![](https://ps.w.org/cf7-google-sheets-connector/assets/icon-128x128.gif?rev=
   3232650)
 * [GSheetConnector for CF7 – Connect Contact Form 7 to Google Sheets and Send Form Submissions in Real Time](https://wordpress.org/plugins/cf7-google-sheets-connector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-google-sheets-connector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-google-sheets-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-google-sheets-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-google-sheets-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-google-sheets-connector/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Equipe GameGratis](https://wordpress.org/support/users/gamegratis/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/delete-file-after-uploading/#post-14653715)
 * Status: resolved