Skip to main content
Known Participant
Jan 14, 2023 10:01 AM UTC
Answered

scripting: about remove()

Hello, when I delete a file with remove(), it doesn't go into the recycle bin, but is completely deleted and the file seems to be unrecoverable.

Is there any way to work around this?

thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.
MukaidaCorrect answer
Community Expert
Jan 14, 2023 12:35 PM UTC

ファイルパスを書き換える方法の様ですが、
下記リンクが参考にならないでしょうか。
Solved: Re: Delete Active Document - Recycle Bin - Adobe Support Community - 10824098 

4 replies

Community Expert
Jan 14, 2023 10:50 AM UTC

Adobe JavaScriptのリファレンスによれば、remove()を使用してファイルを削除するとゴミ箱に入らないと記されています。

Translate
Known Participant
Jan 14, 2023 11:03 AM UTC

ありがとうございます! 

remove()以外でファイルを削除する方法はないでしょうか?

Translate
MukaidaCommunity ExpertCorrect answer
Community Expert
Jan 14, 2023 12:35 PM UTC

ファイルパスを書き換える方法の様ですが、
下記リンクが参考にならないでしょうか。
Solved: Re: Delete Active Document - Recycle Bin - Adobe Support Community - 10824098 

Translate