スキップしてコンテンツを表示

How to delete a file on a remote SFTP server with Transfer Family Connector ?

0

With Transfer Family Connector and a lambda, I am working to build an automated process to retrieve files from an external SFTP server. Once retrieved, the files need to be deleted. As of September 2024, it seems there is no delete function available with TF Connector. But maybe I am missing something ?

質問済み 1年前619ビュー
3回答
1
承認された回答

Hi! As you rightly noted, SFTP connector currently does not support a delete operation. However, the AWS Transfer Family service team is working on a roadmap to introduce the same - could you please reach out to the service team via AWS support or your account team to discuss your requirements?

AWS
回答済み 1年前
エキスパート
レビュー済み 1年前
0

This should now be resolved via a recent update to the service

If you still have issues, please raise a support ticket or contact your account team.

AWS
回答済み 7ヶ月前
-1

Can you check the rm command of the CLI ?

Here’s an example of how it might look:

sftp> cd /remote/directory
sftp> rm file_to_delete.txt

Or you can remove the file from the S3 ?

aws s3 rm /path/of/your/file
エキスパート
回答済み 1年前
  • My concern is about Transfer Family Connectors which is used as an SFTP client. The SFTP server is not hosted into AWS, it's a remote server owned by an external partner.

    With AWS CLI, I don't find any API to delete files on the remote sftp server : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/transfer/index.html

    We can list a remote directory (API start-directory-listing), We can start a transfer, push or pull (API start-file-transfer), But nothing to delete the file on the remote server after the transfer complete.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ