How to delete a posted document in 1C 8.3. Accounting info. Automatic removal of marked objects in an application on the Internet
The 1C 8.3 program does not allow you to delete directories and documents in the database immediately, without additional checks. This is done in order to avoid possible errors. For example, if you want to delete an item that is included in a document, you cannot do this.
Let's look at how to delete documents and directories marked for deletion in 1C 8.3. Removal in 1C 8.2 is slightly different, but has a similar algorithm.
Deleting objects in 1C occurs in two stages:
- Mark for deletion— setting a sign that a document or directory is planned to be deleted. This element is no different from others; it can also be selected in other objects.
- Direct removal— a special procedure during which the system controls whether there are links to a given object in the database. After reference control, 1C makes a decision: whether the object marked for deletion can be deleted or not.
Let's look at these two steps. The instructions are absolutely universal and are suitable for all configurations on 1C 8.3 - Accounting, ZUP, Trade Management, ERP, Small Firm Management and so on.
Setting a mark for deletion in 1C is very simple. Simply select the document or reference book you are interested in from the list and press the “delete” button:
After which you need to confirm your intention. You can now see a special note in the log:
This means that the next time you delete objects through special processing, the system will offer to delete this item of the nomenclature.
How to delete objects marked for deletion in 1C 8.3
The second stage is directly deleting what is already marked in the 1C database. This is done using a special service processing “Deleting marked objects”. It is located on the “Administration” tab:
Get 267 video lessons on 1C for free:
When opening, 1C will give us two options to choose from - automatic deletion of all objects and selective:
Selective can be useful to remove a specific object. For example, select “Automatic mode” and click “Delete”. The deletion of all objects marked for deletion in the system will begin. At the end of the work, the system will display conflict situations—objects that are marked for deletion but are included in accounting:
Here you need to make a choice. For example, we marked “Board 4000x200x20” for deletion, but it is included in the “Operation” and ““ documents. If we don’t need these documents either, we simply mark them for deletion and click on the “Repeat deletion” button. If documents are needed, it is worth thinking about whether this item should not be marked for deletion.
In our example, I decided that I didn’t need these documents in the database either, so I checked them. As a result, the system deleted both the interfering item and the unnecessary document:
That's all, now you know how to delete documents and directories from 1C 8.3.
Automatic deletion of directories and documents
Very often you need to clear the database of all existing documents. Most often this happens when an enterprise changes its legal entity. In this case, the directories must be left and the documents deleted. Let's look at how, using simple processing, you can mark all documents for deletion in 1C 8.3.
Attention! Be sure to do this before starting processing. These changes are irreversible.
Deleting all 1C documents for users
After the copy is made, you need to download a special processing - . It is universal and suitable for any 1C configuration based on 8.2 and 8.3.
To open processing, select the main menu item “File - Open”:
Where you need to select the path to the downloaded processing on your hard drive.
Once opened, processing looks very simple:
Get 267 video lessons on 1C for free:
To start the process, you need to click on a single button. For large databases, the removal time can be more than 10 hours. For example, the 1C Accounting demo database is processed in about 5 minutes on a medium-power computer. After finishing the work, documents that processing could not mark for deletion will be displayed in the message field indicating the reason.
When execution is complete, you can verify that documents are marked for deletion by going to any document log:
For programmers
The processing works very simply: it iterates through all types of documents and then iterates over all documents of a particular type.
Source code:
For each TechMD from Metadata. Documents Cycle Selection = Documents[ TechMD. Name] . Choose() ; Bye Selection. Next() Loop TechOb = Sample. GetObject() ; If TechOb. MarkDeletion Then Continue ; EndIf ; Attempt TechOb. SetDeletionMark(True) ; Exception Report("Document" + TechOb + "could not mark for deletion due to "+ DescriptionError() ) ; EndAttempt ; EndCycle ; EndCycle ;Unfortunately, we are physically unable to provide free consultations to everyone, but our team will be happy to provide services for the implementation and maintenance of 1C. More details about our services can be found on the page
When starting to work in 1C company programs, many people have a question: how to delete unnecessary documents or directory elements? When you click on the "Del" button, the document is only marked for deletion and remains in its place. After reading the article you will know the answer to this question.
Now we will look at how to delete documents in different 1C programs. A common point for all programs is that deletion is only possible in exclusive mode, i.e. No one except you should be working in the program at this moment; it should be closed on all other computers.
Now let’s figure out how to remove unnecessary elements in one of the most popular programs at the moment - 1C: Enterprise Accounting 8, version 2.0.
First you need to switch the interface to Full. Go to the menu item
Tools -> Switch interface -> Full
Now select the item
Operations ->
And we agree that the operation may take a long time. Then in the window that opens, click the “Control” button.
The program begins checking whether other documents contain links to the ones you want to delete. For example, the document “Sales of goods and services” is marked for deletion, but there is a link to this document in the invoice. The program will report this and will not delete the document in this case. In order for a document or directory element to be deleted, you must first remove links to it from all other documents.
Green checkmarks in the figure indicate those documents that can be deleted, and red checkmarks indicate those that have links. The bottom part of the form shows which documents use the object marked for deletion.
After clicking the "Delete" button, those items that are marked in green will be deleted.
In order to delete objects in the new version of 1C: Accounting - edition 3.0, you need to go to the "Administration" tab and select the "Delete marked objects" item.
And starting from version 3.0.34, you need to go to the menu
Administration -> Support and Maintenance -> Deleting marked objects
Then you need to choose whether you want to delete all marked objects or just some of them.
In the program 1C: Integrated automation 8 and 1C: Salary and personnel management 8 you also need to switch the interface to “Full” and go to the menu
Operations -> Deleting marked objects
In conclusion, I would also like to note that documents that are marked for deletion but are found in a closed period (a date for prohibiting editing has been set) will not be deleted. Therefore, it is better to do everything in a timely manner, for example, once a month or before starting preparation for reporting.
And if you need more information about working in 1C: Enterprise Accounting 8, then you can get our book onlink.
Accountants often encounter unnecessary files in their work. However, version 1C:Enterprise 8.3 does not make it possible to immediately delete reference elements and documents. This is understandable - the program protects you from making wrong decisions, but such a prohibition does not always suit the user.
Today we will dwell on this topic in more detail. So, how to properly and safely remove marked objects from 1C?
Stages of deleting objects in 1C
The process takes place in two stages, regardless of the configuration version - be it a software product for accounting or human resources, for managers of a large enterprise or retail chain.
1. It is necessary to indicate to the program which document should be “parted” with; to do this, we put a special mark for deletion. During the deletion process, it is checked whether there are links in the database to this document. At the end of the reconciliation, the PP gives permission or, on the contrary, prohibits this procedure.
Next, we proceed to remove the designated materials. In 1C it is not difficult to make the appropriate note; the main thing is to find the required document in the list. Right-click to activate “Mark for deletion/Unmark” or simply click on “Delete”.
Fig 1. How to mark an object for deletion?
PP 1C hedges its bets - a window pops up where it asks you to confirm your intention to “delete the object”. As soon as you agree to continue the process, an “X” sign will appear in the log, which means it’s time for the second stage.
Fig 2. Where is the “removal of marked objects” processing located?
2. PP 1C will provide a choice: delete all objects automatically, or selectively. If you choose the first option, the program will automatically delete all documents that you previously marked.
This is not always convenient, since you will no longer be able to control the process; it will become unmanageable. For this reason, most people choose the second method - you manually select objects to delete. We place the cursor and go to the “Next” command, PP 1C will analyze the directory and present documents that are marked for disposal.
The next step is to designate a specific object to be deleted. Place the cursor on “Uncheck all checkboxes”, find the required document (if necessary, expand it), mark one object or more and click “Delete”.
Fig 3. Possibility of selective deletion of marked objects
The object was deleted, and without any difficulties. It would seem that the process was completed successfully, but PP 1C declares that a problem has arisen, and during the process it becomes clear that the object “sentenced” to disposal continues to take part in the completed documents.
There is only one way out - it is recommended to delete the files with which it is associated along with the element. If the described objects are important for the organization, then it is better not to run the procedure in order to avoid problems that may arise when combining data in the future.
The developers have introduced a new method in 1C:Enterprise 8.3, thanks to which you can delete them automatically.
The function was implemented through a routine task. PP 1C itself organizes the process according to a given schedule within a short time.
To configure this option, perform the following steps: go to “Administration” → “Deleting marked objects”. Check “Automatically delete marked objects according to schedule.”
It is possible to customize the schedule at your discretion, or work according to the existing settings. The advantage of this method is that the removal of marked elements will take place at night, i.e., outside working hours, when the software is not in use.
Fig 4. Setting up scheduled removal of objects
This method is not suitable for every user. Since the program will delete an object or directory without your control, in accordance with your notes, which, by the way, you may have set by mistake or due to an oversight. An object deleted by the program can hardly be tracked and restored.
Having studied the above, you can easily remove everything unnecessary and erroneously created by both you and your colleagues. But not all situations are so easily resolved. In everyday work, you may encounter tasks that can baffle you with their originality and complexity. Here we recommend turning to professionals.
MasterSoft specialists have extensive experience in solving problems of any level of complexity. If you have any questions, please leave a request in the “Order a call” or “Ask a question” form and we will call you back.
The software product “1C 8.3” does not allow documents and reference books in the database to be deleted immediately, without checks. This, of course, is done in order to avoid possible errors. For example, if you want to delete an item that is included in a document, then this is not allowed.
In this material we will look at how to delete directories and documents marked for deletion in the above-mentioned software product.
In the 1C program, object deletion is carried out in 2 stages. The first of them is a mark for deletion. This is an indication that a directory or document is planned to be deleted. Such an element is no different from others; it can be corrected in other objects. The second stage will be the actual removal. This is a special procedure during which the system checks whether there are links to the selected object in the information database.
Now let's look at these two stages in more detail. It is important to say that the proposed instructions are absolutely universal and are suitable for all configurations on “1C 8.3”: “Trade Management”, “”, “Accounting”, “”, “Small Firm Management”, etc.
First stage - mark for deletion
In “1C” it is very easy to set the deletion mark. To do this, you just need to select the directory or document that interests us and press the “delete” key:
Once done, you must confirm the desired operation. A special note will appear in the journal:
This means that when deleting objects using special processing, the system will prompt you to delete this item of the nomenclature.
How to delete designated objects in 1C 8.3?
The next, second stage is directly deleting objects marked in the database. This is done with the participation of a special service processing called “Deleting marked objects.” It is located on the tab called “Administration”:
During opening, “1C” will give you a choice of 2 options - selective deletion of all objects and automatic:
Selective can be useful for deleting specific objects. For example, you can select “Automatic mode” and press the “Delete” button. All objects detected in the system will be deleted. At the end of the work, the system will display conflict situations: objects that participate in accounting, but are still marked for deletion:
Here you need to choose. For example, the item “Board 4000x200x20” in this case is designated for deletion, but it is included in the documents called “Production report for the shift” and “Operation”. If these documents are not needed, then you just need to mark them for deletion and press the button called “Repeat deletion”. If documents are needed for work, then you need to think about whether this item really needs to be deleted. In our example, we decided that we do not need these documents.
Now it’s clear how you can delete directories and documents from 1C 8.3.
Deleting documents and reference books automatically
In the 1C 8.3 platform it is now possible to delete detected objects automatically. This possibility became a reality with the participation of the so-called regulatory task. The system performs this procedure according to a schedule. It will only take 3 minutes of your time.
To configure, you first need to go to the tab called “Administration”, then - “Support and Maintenance”, where there is a checkbox “Automatically delete detected objects on a schedule”:
When you click on it, the system will offer the required option:
We recommend that you leave the default settings and simply click on the “OK” button. In this case, deletion of marked objects will be carried out at night, because at this time, as a rule, no one is working in the program.