import dbCalls

def main():
    print('Deleting everything from students, styles, and answers.')
    dbCalls.remove_all()

if __name__ == "__main__":
    main()




import os

import dbCalls

summary_file = 'app/assets/images/summary.png'
overall_file = 'app/assets/images/overall.png'

def main():
    print('Deleting everything from students, styles, and answers.')
    dbCalls.remove_all()

    # remove both summary and overall picture
    try:
        os.remove(summary_file)
        os.remove(overall_file)
    except OSError:
        pass

if __name__ == "__main__":
    main()



Remove picture files along with data
Remove picture files along with data

+ 
+ import os
+ 
  import dbCalls
+ 
+ summary_file = 'app/assets/images/summary.png'
+ overall_file = 'app/assets/images/overall.png'
  
  def main():
      print('Deleting everything from students, styles, and answers.')
      dbCalls.remove_all()
+ 
+     # remove both summary and overall picture
+     try:
+         os.remove(summary_file)
+         os.remove(overall_file)
+     except OSError:
+         pass
  
  if __name__ == "__main__":
      main()
  
  
  
Remove picture files along with data
## Code Before:
import dbCalls

def main():
    print('Deleting everything from students, styles, and answers.')
    dbCalls.remove_all()

if __name__ == "__main__":
    main()



## Instruction:
Remove picture files along with data
## Code After:

import os

import dbCalls

summary_file = 'app/assets/images/summary.png'
overall_file = 'app/assets/images/overall.png'

def main():
    print('Deleting everything from students, styles, and answers.')
    dbCalls.remove_all()

    # remove both summary and overall picture
    try:
        os.remove(summary_file)
        os.remove(overall_file)
    except OSError:
        pass

if __name__ == "__main__":
    main()


