def remove_elasticbeanstalk():
 docs_dir_location = os.path.join(PROJECT_DIRECTORY, '.ebextensions')
 if os.path.exists(docs_dir_location):
  shutil.rmtree(docs_dir_location)
 filenames = ['ebsetenv.py']
 if ('{{ cookiecutter.use_heroku }}'.lower() != 'y'):
  filenames.append('requirements.txt')
 for filename in filenames:
  os.remove(os.path.join(PROJECT_DIRECTORY, filename))

def remove_elasticbeanstalk ( ) : docs_dir_location = os . path . join ( PROJECT_DIRECTORY , '.ebextensions' ) if os . path . exists ( docs_dir_location ) : shutil . rmtree ( docs_dir_location ) filenames = [ 'ebsetenv.py' ] if ( '{{ cookiecutter.use_heroku }}' . lower ( ) != 'y' ) : filenames . append ( 'requirements.txt' ) for filename in filenames : os . remove ( os . path . join ( PROJECT_DIRECTORY , filename ) )
removes elastic beanstalk components .