How to delete a file from a branch in AWS CodeCommit

0 votes

Hi Guys,

I have some files in AWS CodeCommit. I want to delete the file. How can I do that?

Nov 24, 2020 in AWS by akhtar
• 38,240 points
1,169 views

1 answer to this question.

0 votes

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
answered Nov 24, 2020 by MD
• 95,340 points

Related Questions In AWS

0 votes
1 answer

How to delete a repository in AWS CodeCommit?

Hi@akhtar, You can delete a repository in AWS CodeCommit. ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,340 points
314 views
0 votes
1 answer

How to get information about a branch in AWS CodeCommit?

Hi@akhtar, You can get information about a repository ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,340 points
180 views
0 votes
1 answer

How to view a list of branch names in AWS CodeCommit?

Hi@akhtar, You can get information about one or more ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,340 points
148 views
0 votes
1 answer

How to add a file to a repository in AWS CodeCommit?

Hi@akhtar, You can add or update a file in a ...READ MORE

answered Nov 24, 2020 in AWS by MD
• 95,340 points
771 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to delete a branch in AWS CodeCommit?

Hi@akhtar, You can delete a branch from a repository ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,340 points
236 views
0 votes
1 answer

How to create a branch in an AWS CodeCommit repository?

Hi@akhtar, This example creates a branch in an ...READ MORE

answered Nov 23, 2020 in AWS by MD
• 95,340 points
294 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP