2 Answers
- Newest
- Most votes
- Most comments
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?
answered 2 months ago
-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
Relevant content
- asked 8 months ago
- asked 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 days ago
- AWS OFFICIALUpdated 4 months ago
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.