Skip to main content
Known Participant
January 14, 2023
Answered

scripting: about remove()

  • January 14, 2023
  • 1 reply
  • 941 views

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 has been closed for replies.
Correct answer Mukaida

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

1 reply

Community Expert
January 14, 2023

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

Known Participant
January 14, 2023

ありがとうございます! 

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

MukaidaCommunity ExpertCorrect answer
Community Expert
January 14, 2023

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