code: def delete(self, filename):
          
          folder = "Packages" if is_package(filename) else "Scripts"
          path = os.path.join(self.connection["mount_point"], folder, filename)
          if os.path.isdir(path):
              shutil.rmtree(path)
          elif os.path.isfile(path):
              os.remove(path)
docs: Delete a file from the repository.
  
          This method will not delete a script from a migrated JSS.
          Please remove migrated scripts with jss.Script.delete.
  
          Args:
              filename: String filename only (i.e. no path) of file to
                  delete. Will handle deleting scripts vs. packages
                  automatically.