docs: def deleteoutputfile(project, filename, credentials=None):
          """Delete an output file"""
  
          user, oauth_access_token = parsecredentials(credentials) #pylint: disable=unused-variable
          if filename: filename = filename.replace("..","") #Simple security
  
          if not filename or len(filename) == 0:
              #Deleting all output files and resetting
              Project.reset(project, user)
              msg = "Deleted"
              return withheaders(flask.make_response(msg), 'text/plain',{'Content-Length':len(msg), 'allow_origin': settings.ALLOW_ORIGIN}) #200
          elif os.path.isdir(Project.path(project, user) + filename):
              #Deleting specified directory
              shutil.rmtree(Project.path(project, user) + filename)
              msg = "Deleted"
              return withheaders(flask.make_response(msg), 'text/plain',{'Content-Length':len(msg), 'allow_origin': settings.ALLOW_ORIGIN}) #200
          else:
              try:
                  file = clam.common.data.CLAMOutputFile(Project.path(project, user), filename)
              except:
                  raise flask.abort(404)
  
              success = file.delete()
              if not success:
                  raise flask.abort(404)
              else:
                  msg = "Deleted"
                  return withheaders(flask.make_response(msg), 'text/plain',{'Content-Length':len(msg), 'allow_origin': settings.ALLOW_ORIGIN})