You can't to that. If you want to delete a piece of data in your file, you will need to re-write the remainder of the file.
pseudo-code:
- Open original file for read - Open temp file for write - While data in original file - If original file data is needed - Write data to temp file - Delete original file - Rename temp file to original file name