def remove_uploaded_zip(self):
        """
        Remove the local and S3 zip file after uploading and updating.
        """

        # Remove the uploaded zip from S3, because it is now registered..
        if self.stage_config.get('delete_s3_zip', True):
            self.zappa.remove_from_s3(self.zip_path, self.s3_bucket_name)
            if self.stage_config.get('slim_handler', False):
                # Need to keep the project zip as the slim handler uses it.
                self.zappa.remove_from_s3(self.handler_path, self.s3_bucket_name)
def remove_uploaded_zip ( self ) : if self . stage_config . get ( 'delete_s3_zip' , True ) : self . zappa . remove_from_s3 ( self . zip_path , self . s3_bucket_name ) if self . stage_config . get ( 'slim_handler' , False ) : self . zappa . remove_from_s3 ( self . handler_path , self . s3_bucket_name )
Remove the local and S3 zip file after uploading and updating.