Hi@akhtar,
The following delete-file example demonstrates how to delete a file named README.md from a branch named master with a most recent commit ID in a repository named MyDemoRepo.
$ aws codecommit delete-file --repository-name MyDemoRepo --branch-name master --file-path README.md --parent-commit-id ID
Hope this helps!
Enroll in AWS Training here and become the expert.
Thanks!