L
L
Levon2018-03-28 08:53:21
JavaScript
Levon, 2018-03-28 08:53:21

Is it possible to delete files via JS?

Is it possible to write a script that deletes any file in the server folder?
For example, I download a file from which information is taken, after that I don’t need it, can I delete it somehow after that automatically?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-03-28
@alexr64

https://nodejs.org/api/fs.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question