Can I delete temp folder files from file from cpanel

WINBOY

Registered
May 24, 2020
3
0
1
INDIA
cPanel Access Level
Website Owner
I have many files in temp folder in my panel. This files not in public_html directory. It is out of public_html directory. It contains folders and files name as below.

Code:
awstats  4 KB  Today, 11:48 AM

sess_c08e65c2996a5efcb2fde30917541754
2.82 KB
May 16, 2020, 10:43 PM

sess_d5pa0ba9kuq4h7364ca6bpuos6
0 bytes
Apr 12, 2020, 4:03 PM

sess_d4c2ba99d323f3de0cfad8336219cc10
3.82 KB
Jan 19, 2020, 12:24 AM

sess_705cdacdd5fba215d1a8e6c6f29e9cf8
3.77 KB
Jan 17, 2020, 2:48 PM

sess_80ecca1477c629abe4d88526f932bcb9
3.79 KB
Jan 16, 2020, 12:18 AM

pma_template_compiles_
4 KB
Jan 16, 2020, 12:15 AM

horde
4 KB
Apr 23, 2019, 4:18 AM

sess_mq4nono8gvpgfsed1854beosp5rsnl4v
27.07 KB
Mar 17, 2017, 6:58 PM

sess_f9q6doucb68uo92kf5e3nb73jrleuuqq
24.63 KB
Aug 1, 2016, 11:26 AM

sess_i07cp6s1h4uimjr18m1vqcoq9bfrp66n
25.6 KB
Jul 15, 2016, 10:16 PM

sess_bsf5gg8dt42gdtv8i2qtoct9j5mm17eh
27.04 KB
Jun 26, 2016, 5:34 PM

sess_a1p9dq03ef3881u709j400uiv3rk39t5
24.55 KB
Jun 10, 2016, 8:40 PM

sess_b79rpbgtb6at1k0bf3k1a3t91ijhagj0
24.61 KB
Feb 25, 2016, 6:43 PM

sess_8l88p0o9p8pckmr79j7p93anf68a113n
25.85 KB
Feb 6, 2016, 3:30 PM

sess_tfosfbbmgi1qhjrc3of6ggb87a0h97a0
24.8 KB
Feb 3, 2016, 6:46 PM

sess_i9bvn10o73krnclbq549vddp2c1a6dm4
26.51 KB
Jan 15, 2016, 9:13 PM

sess_a727q9sufbpah9ghl9e40hgrmnkoqr0d
24.8 KB
Dec 12, 2015, 11:24 PM

sess_n1tge75qd35ldtmp521r1j0keml5911n
24.8 KB
Dec 12, 2015, 11:22 PM

sess_jbb4ae5qgph2g11q0msg0514e39ajecc
27.44 KB
Dec 10, 2015, 8:53 PM

sess_cjhfcdsgtc8h0013na009n6vjcj38b9e
24.8 KB
Dec 9, 2015, 6:29 PM

sess_8hir9tvu7qfi97ab73e174oaqk2ms2ch
27.16 KB
Dec 7, 2015, 6:27 PM

sess_jqp2d8tf0c1n48hoon15tm3n06g5fjr7
24.8 KB
Dec 1, 2015, 6:36 PM

sess_ubnbl8a8e9ln1h91uhh20sq5vdc81n2d
29.64 KB
Nov 30, 2015, 6:53 PM

sess_f19u9av51feqqiq3i82s98o5urrt97vv
27.76 KB
Nov 27, 2015, 11:49 PM

sess_q0an58ct1d3ffl36vovlqfg9bsimnm1m
26.52 KB
Nov 26, 2015, 12:42 AM

sess_gs1p0dab3lf4uv4dkfolca9u3ef06jqu
26.55 KB
Nov 21, 2015, 2:42 PM

sess_p85ifvoe7hh641k0iiv8mdf7lqfmtlk7
26.5 KB
Nov 20, 2015, 11:23 AM

sess_eg77qtn1nm4dicipn6a2jincc3v0kqqa
24.8 KB
Nov 19, 2015, 2:55 PM

sess_auvi4lc9kkpmaqug6hpcbef9d7ra7pdl
27.1 KB
Oct 29, 2015, 11:43 AM

sess_ennb62djnpr2enppn78usqem9q1n2cug
17.81 KB
Sep 9, 2015, 9:00 AM

webalizerftp
4 KB
Feb 5, 2015, 10:26 AM

webalizer
4 KB
Feb 5, 2015, 10:26 AM

logaholic
4 KB
Feb 5, 2015, 10:26 AM

analog
4 KB
Feb 5, 2015, 10:26 AM

cpbandwidth
4 KB
Feb 4, 2015, 9:45 PM
Please help me.
Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,327
141
193
Finland
cPanel Access Level
Root Administrator
I have many files in temp folder in my panel. This files not in public_html directory. It is out of public_html directory. It contains folders and files name as below.

Code:
awstats  4 KB  Today, 11:48 AM

sess_c08e65c2996a5efcb2fde30917541754
2.82 KB
May 16, 2020, 10:43 PM
...
...

cpbandwidth
4 KB
Feb 4, 2015, 9:45 PM
Please help me.
Thank you.
What is the problem?
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
38
103
USA
cPanel Access Level
Root Administrator
Hello @WINBOY

Thank you for contacting cPanel!

Usually the /tmp directory is cleaned when the server is rebooted. Based on the details you shared, some of these files are up to 5 years old. You can delete them safely, and any files that are required by a running process will usually be regenerated. However, it would be best to have your system administrator investigate why the files were not deleted, particularly the PHP session files. You might want to check to see if there are any running processes that are holding the files open. Additionally, you should ensure that your PHP scripts are properly configured to discard the temporary session files after the script runs.

Best regards.
 
  • Like
Reactions: WINBOY

WINBOY

Registered
May 24, 2020
3
0
1
INDIA
cPanel Access Level
Website Owner
Thank you Mr. Samuel...Can you guide for to configure PHP scripts so it discard the temporary session files after the script runs.