CmdID / aws / aws codecommit
aws codecommit delete-file
Deletes a specified file from a specified branch. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--branch-nameThe name of the branch where the commit that deletes the file is made.--commit-messageThe commit message you want to include as part of deleting the file.--emailThe email address for the commit that deletes the file.--file-pathThe fully qualified path to the file that to be deleted, including the full name and extension of that file.--keep-empty-foldersIf a file is the only object in the folder or directory, specifies whether to delete the folder or directory that contains the file.--nameThe name of the author of the commit that deletes the file.--parent-commit-idThe ID of the commit that is the tip of the branch where you want to create the commit that deletes the file.--repository-nameThe name of the repository that contains the file to delete.