#NEWLINE# @ staticmethod #NEWLINE# def _remove_object( src , host , dst , on_execute , on_completion ) : #NEWLINE# #INDENT# 'Removes a file or empty directory on a remote host.\n\n        :param src: Empty directory used for rsync purposes\n        :param host: Remote host\n        :param dst: Destination path\n        :param on_execute: Callback method to store pid of process in cache\n        :param on_completion: Callback method to remove pid of process from\n                              cache\n        ' #NEWLINE# utils . execute ( 'rsync' , '--archive' , '--delete' , '--include' , os . path . basename ( os . path . normpath ( dst ) ) , '--exclude' , '*' , ( os . path . normpath ( src ) + os . path . sep ) , ( '%s:%s' % ( host , os . path . dirname ( os . path . normpath ( dst ) ) ) ) , on_execute = on_execute , on_completion = on_completion )