'Remove a tombstone file matching the specified timestamp or
datafile matching the specified timestamp and fragment index
from the object directory.
This provides the EC reconstructor/ssync process with a way to
remove a tombstone or fragment from a handoff node after
reverting it to its primary node.
The hash will be invalidated, and if empty or invalid the
hsh_path will be removed on next cleanup_ondisk_files.
:param timestamp: the object timestamp, an instance of
:class:`~swift.common.utils.Timestamp`
:param frag_index: fragment archive index, must be
a whole number or None.'

def purge(self, timestamp, frag_index):

    purge_file = self.manager.make_on_disk_filename(timestamp, ext='.ts')
    remove_file(os.path.join(self._datadir, purge_file))
    if (frag_index is not None):
        purge_file = self.manager.make_on_disk_filename(timestamp, ext='.data', frag_index=frag_index)
        remove_file(os.path.join(self._datadir, purge_file))
        purge_file = self.manager.make_on_disk_filename(timestamp, ext='.data', frag_index=frag_index, durable=True)
        remove_file(os.path.join(self._datadir, purge_file))
    self.manager.invalidate_hash(dirname(self._datadir))
